您现在的位置是:首页 > 电脑技术查询 > web开发

iframe中提交数据的有关问题

编辑:chaxungu时间:2022-10-02 23:21:52分类:web开发

iframe中提交数据的问题
主页面中包括一个查询表单,一个iframe,想把查询表单中的查询条件传到iframe中,查询结果显示在iframe中?如何实现?

<form name= "schForm " method= "post ">
<input type=hidden name= "schID " value= "aaa ">

查询内容: <input type=text name= "schContent ">
<input type=submit value= "查询 ">
</form>

<iframe name= "fmFrame " src= " "> </iframe>

------解决方案--------------------
document.all.fmFrame.src=url + 参数;
------解决方案--------------------
window.iframes[0].document.getElementById( "TABLE_ID ")

------解决方案--------------------
document.all.iframe.src=url
------解决方案--------------------
form 的taget指向iframe就可以拉。