无法填充框架集中的文本框?我怎么能那样做

Not able to fill the textboxes in frameset. ? how can i do that

本文关键字:怎么能 文本 填充 框架 集中      更新时间:2023-09-26
<html>
<head>
<script type="text/javascript">
   function load()
    {
      var the_form = parent.document.frames['myFrame'].document.forms['form1'];
       var source = the_form.elements['Login1_UserName'];
         var target = the_form.elements['Login1_Password'];
        alert('');
          }
 </script>
  </head>
 <frameset>
   <frame name="myFrame" src="http://xyz.com/" onload="load()" />
 </frameset>
  </html>

您的框架位于不同的域上。同源策略禁止访问不同域(或端口或协议(上的帧。