<html>
<script>
function dosub(){
  for(var i=0;i< document.frames.length;i++){
    if(document.frames[i].document.forms[0]) document.frames[i].document.forms[0].submit();
  }
}
</script>
<body>
<input type="button" onclick="dosub();" value="Click">
<iframe src="hits.asp?keywordsid=13" width="1208" height="200" name="I25">  </iframe>  
<iframe src="hits.asp?keywordsid=14" width="1208" height="200" name="I25">  </iframe> 
</body>
</html>

解决方案 »

  1.   

    <html>
    <script>
    function dosub(){
      for(var i=0;i< document.frames.length;i++){
        if(document.frames[i].document.forms[0]) document.frames[i].document.forms[0].submit();
      }
    }
    </script>
    <body>
    <input type="button" onclick="dosub();" value="Click">
    <iframe src="hits.asp?keywordsid=13" width="1208" height="200" name="I25">  </iframe>  
    <iframe src="hits.asp?keywordsid=14" width="1208" height="200" name="I25">  </iframe> 
    </body>
    </html>
      

  2.   

    <html>
    <script>
    function dosub(){
      for(var i=0;i< document.frames.length;i++){
        if(document.frames[i].document.forms[0]) document.frames[i].document.forms[0].submit();
      }
    }
    </script>
    <body>
    <input type="button" onclick="dosub();" value="Click">
    <iframe src="hits.asp?keywordsid=13" width="1208" height="200" name="I25">  </iframe>  
    <iframe src="hits.asp?keywordsid=14" width="1208" height="200" name="I25">  </iframe> 
    </body>
    </html>
      

  3.   


    <html>
    <script>
    function dosub(){
      for(var i=0;i< document.frames.length;i++){
        if(document.frames[i].document.forms[0]) document.frames[i].document.forms[0].submit();
      }
    }
    </script>
    <body>
    <input type="button" onclick="dosub();" value="Click">
    <iframe src="hits.asp?keywordsid=13" width="1208" height="200" name="I25">  </iframe>  
    <iframe src="hits.asp?keywordsid=14" width="1208" height="200" name="I25">  </iframe> 
    </body>
    </html>
      

  4.   

    <html>
    <script>
    function dosub(){
      for(var i=0;i< document.frames.length;i++){
        if(document.frames[i].document.forms[0]) document.frames[i].document.forms[0].submit();
      }
    }
    </script>
    <body>
    <input type="button" onclick="dosub();" value="Click">
    <iframe src="hits.asp?keywordsid=13" width="1208" height="200" name="I25">  </iframe>  
    <iframe src="hits.asp?keywordsid=14" width="1208" height="200" name="I26">  </iframe> 
    </body>
    </html>
    可以,跳出窗口是因为框架名字的问题,现在可以了,谢谢啊
      

  5.   

    <html>
    <script>
    function dosub(){
      for(var i=0;i< document.frames.length;i++){
        if(document.frames[i].document.forms[0]) document.frames[i].document.forms[0].submit();
      }
    }
    </script>
    <body>
    <input type="button" onclick="dosub();" value="Click">
    <iframe src="hits.asp?keywordsid=13" width="1208" height="200" name="I25">  </iframe>  
    <iframe src="hits.asp?keywordsid=14" width="1208" height="200" name="I26">  </iframe> 
    </body>
    </html>
    可以,跳出窗口是因为框架名字的问题,现在可以了,谢谢啊
      

  6.   


    <html>
    <script>
    function dosub(){
      for(var i=0;i< document.frames.length;i++){
        if(document.frames[i].document.forms[0]) document.frames[i].document.forms[0].submit();
      }
    }
    </script>
    <body>
    <input type="button" onclick="dosub();" value="Click">
    <iframe src="hits.asp?keywordsid=13" width="1208" height="200" name="I25">  </iframe>  
    <iframe src="hits.asp?keywordsid=14" width="1208" height="200" name="I25">  </iframe> 
    </body>
    </html>