我环顾四周,发现其他人在 Firefox 中遇到了有关 innerHTML 的问题,但我找不到解决方案。这是一个非常简单的js,在IE中运行良好,但在firefox中不会将表单元素结果1提交到下一页。任何 Firefox 帮助表示赞赏。谢谢!杰拉德
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Page Title</title>
<script type="text/javascript" language="JavaScript">
function addInput1(){
var x = document.getElementById("Input1");
x.innerHTML += "<textarea cols=\'20\' rows=\'3\' name=\'Outcome1\'></textarea><br/>";
}
</script>
</head>
<body>
<table cellspacing="0" cellpadding="2">
<form action="admin/AddNew.cfm" method="post">
<tr>
<td valign="top" class="center">
<input type="button" value="+" onmousedown="addInput1();" />
<div align="center" id="Input1"></div>
</td>
</tr>
<tr>
<td>
<input type="submit" name="Submit" value="Submit">
</td>
</tr>
</form>
</table>
</body>
</html>