传递值时为什么说提示 错误:缺少‘;’?谢谢!
我想从parent.htm文本框值传递到modal.htm中的文本框,为什么说提示 错误:缺少‘;’这是parent.htm代码
<body>
<script>
function gz_zc()
{
var obj = new Object();
obj.name=form1.qtkk.value;
window.showModalDialog("modal.htm",obj,"dialogWidth=400px;dialogHeight=400px");
}
</script>
<form name="form1" action="" method="get">
<input name="qtkk" type="text" id="qtkk" onchange="value=value.replace(/[^\d\.]/g,'');gz_zc();">
</form>
</body>
这是modal.htm代码
<body>
<script>
var obj = window.dialogArguments
var form1.yfgz.value = + obj.name;
</script>
<form name="form1" action="" method="get"><input name="yfgz" type="text" id="yfgz" value=""></form>
</body>