if (document.frameName.inputId.value == "")
  ....

解决方案 »

  1.   

    if(window.iframeName.document.all.textName.value==""){
      alert("iframeName中textName为空")
    }
      

  2.   

    <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();">
      

  3.   

    上面那个是: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>
      

  4.   

    if(window.iframeName.document.all.inputID.value=="")
    {
    alert("Here Is Empty!");
    }