我的文件有两种形式 我在FORM2上的表单上有四个操作按钮 每个按钮提供不同的form.action 该操作的目标是PHP脚本
按钮适用于chrome / firefox
在IE8上,我收到错误'object doesn't support property or method'
我尝试了以下
按钮type='button'
:
document.getElementById('searchform').action = "index.php?p=advancedChart";
document.getElementById('searchform').submit();
document.searchform.action = "includes/download.php";
document.searchform.submit();
按钮type=submit
:
document.forms['searchform'].action='includes/download.php'
this.form.action='includes/download.php'
this.forms['searchform'].action='includes/download.php'