.net WEB 窗体怎么得到ifream里面一个html也面的值.的问题.

来源:百度知道 编辑:UC知道 时间:2024/06/01 02:26:01
<table cellpadding="0" cellspacing="0" border="0" width="650px" align="center">
<tr height="550px" valign="top">
<td valign="top">
<iframe src="zoneedit/good.html?ID=Content" frameborder="0" scrolling="no" style="width: 650px;
height: 550px" id="edit" name="edit"></iframe>
</td>
</tr>
</table>

aspx WEB窗体。 我怎么才能得到一个 iframe里面的一个html页的值.

假设good.html里有个text框,name为:txt1
那么:
obj = document.frames("edit");
alert(obj.document.all.txt1.value);
就可以了

好像只能从html的页面里面传过来吧.....

期待高人解答.