Click here to Skip to main content
15,886,574 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
We are facing the same problem. Unfortunately, we are unable to proceed as we are facing so many issues. Could you please help us to resolve this.

We are facing error like "**Blocked AutoFocusing on a <input> element in a cross-origin subframe"**

What I have tried:

<pre><HTML>
          <head>
            <title>Frame: Onload & Onunload Examples</title>
             <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <script language="JavaScript">
    
      function testOnload() {
       // alert('OnLoad: Alert in testOnload() executed by onLoad property of frameset tag.');
      document.getElementById("top").src="";
      }
     function testOnUnload() {
     //alert('OnUnload: Alert in testOnUnload() executed by onUnLoad property of frameset tag.')
      }
      //-->
      </script>
      </head>
      <frameset rows="80,*" frameborder="0" border="0" framespacing="0" 
       onLoad="javascript:testOnload()"   
       onUnload="javascript:testOnUnload(); alert('onUnload: alert in frameset tag')">
    <frame name="topFrame" scrolling="NO" noresize src="https://developers.google.com/oauthplayground/" id="top">
    <frame name="mainFrame" src="http://localhost:4200/">
    <noframes>
        <iframe  src="http://localhost:4200/" width="150" height="100" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
        <body bgcolor="#FFFFFF">
         <p>Sorry, this page needs a browser that supports frames.</p>
        </body>
    <!-- </noframes>
    </frameset> -->
    </html>
Posted
Updated 5-Oct-22 20:03pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900