日期:2014-05-17  浏览次数:20758 次

iframe 的传值到asp网页的 问题
我有网页   1.asp   ,2.asp。在1.asp中iframe   2.ASP


1.asp中有 <input   type= "text "   name= "name ">

2.asp的内容如下:
通过读取数据库循环表格如下内容:

李墙    
张三
赵五
丁二
....
.....
我的问题是:
如何点中iframe   2.ASP   中的名字后提交到1.asp的
<input   type= "text "   name= "name ">   中??

麻烦各位老大

------解决方案--------------------
2.asp
如果你的1.asp <input type= "text " name= "name "> 外面有form的话
<a href= "javascript:parent.document.from.name.value= '张三 '; "> 张三 </a>
假如没有form
<a href= "javascript:parent.document.all.name.value= '张三 '; "> 张三 </a>