部分代码如下:
<from name="frm" action="bb.asp">
<table>
<tr>
<td><input type="text" name="BH"></td>
</tr>
<tr>
<td><iframe name="ScrollFrame" src="aa.asp" width="100%"></IFRAME></td>
</tr>
</table>
</form>
问题:如何在aa.asp中判断表单(frm)中输入框(BH)的值是否为空?
-----------------------------------
aa.asp文件测试代码
----------------------------------------------
<script language="javascript">
function show(){
if(document.parentWindow.parent.document.getElementsByName("BH")[0].value=="")
alert("空的");
else
alert("不空");
}
</script>
<input type="button" value="show" onclick="show();">
最后
以上就是玩命手机最近收集整理的关于在Iframe中获取父窗口中表单的值(示例代码)的全部内容,更多相关在Iframe中获取父窗口中表单内容请搜索靠谱客的其他文章。
发表评论 取消回复