一个页面中嵌入了两个iframe,每个iframe里面有几个input,如何在这个页面中判断iframe中的input是否为空?javascript该如何写啊? if (document.frameName.inputId.value == "") .... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if(window.iframeName.document.all.textName.value==""){ alert("iframeName中textName为空")} <script language="javascript"><!-- function fnccheck() { var o1 = document.frames[0]; var o2 = document.frames[1]; for(var i=0;i<o1.document.all.length;i++) { if(o1.document.all[i].type == 'text' && o1.document.all[i].value == '') alert('左边ifame中的'+o1.document.all[i].name+'为空!') } for(var i=0;i<o2.document.all.length;i++) { if(o2.document.all[i].type == 'text' && o2.document.all[i].value == '') alert('右边ifame中的'+o2.document.all[i].name+'为空!') } }//--></script><iframe src=b.asp></iframe><iframe src=c.asp></iframe><input type=button value=check onclick="fnccheck();"> 上面那个是:a.asp下面是两个frame----- b.asp -----<input name=T1 size=20><input name=T2 size=20><input name=T3 size=20>----- c.asp -----<input name=T1 size=20><input name=T2 size=20> if(window.iframeName.document.all.inputID.value==""){alert("Here Is Empty!");} XMLHttpRequest读取xml无数据 jsp 下拉列表 关联的问题 请问如何在<textarea>的当前光标处插入数据? class_.prototype = aBaseClass;[/color]//这句话的 深层含义 js窗口传值问题?????????????? 求javaScript解析XML!! jquery 鼠标事件的问题,希希望高手进来解答~ 这样究竟是否可以? javascript中有没有可以实现三种按钮的对话框?? 问一下大家,关于angularJS的不同视图子页面跳转问题。 简单的IFRAME打开理解问题 求微软左侧XML菜单
alert("iframeName中textName为空")
}
<!--
function fnccheck()
{
var o1 = document.frames[0];
var o2 = document.frames[1];
for(var i=0;i<o1.document.all.length;i++)
{
if(o1.document.all[i].type == 'text' && o1.document.all[i].value == '') alert('左边ifame中的'+o1.document.all[i].name+'为空!')
} for(var i=0;i<o2.document.all.length;i++)
{
if(o2.document.all[i].type == 'text' && o2.document.all[i].value == '') alert('右边ifame中的'+o2.document.all[i].name+'为空!')
}
}
//-->
</script><iframe src=b.asp></iframe>
<iframe src=c.asp></iframe>
<input type=button value=check onclick="fnccheck();">
<input name=T2 size=20>
<input name=T3 size=20>
----- c.asp -----<input name=T1 size=20>
<input name=T2 size=20>
{
alert("Here Is Empty!");
}