Jump to content

Close Form External Page


diegojmap

Recommended Posts

2 minutes ago, diegojmap said:

My example has no secret is the demo of the urlframe.
I just wanted to know the la command in javascript and receive it in ajaxevent.
If possible.

Okay, but your case is not very clear to me, so I asked for a test case.

Link to comment
Share on other sites

<html>
I'm trying to catch the CloseIframe event 

 

 

<head>
    <title>IFRAME</title>
    <script language="JavaScript">
      function close() {    
         console.log('close');
         top.ajaxRequest(top.MainForm.UniURLFrame1 , "CloseIframe",[]);         
      };
    </script>
  </head>
  <body>
    <h1>IFRAME</h1>
    <p> when clicking on the button you should close the iframe window opened by uniguiu </p>
    <button onclick="close()">Close</button>
  </body>
</html>

URLFrame2.rar

Link to comment
Share on other sites

<head>
    <title>IFRAME</title>
    <script language="JavaScript">
      function _close() {    
         console.log('close');
         top.ajaxRequest(top.MainForm.UniURLFrame1 , "CloseIframe",[]);         
      };
    </script>
  </head>
  <body>
    <h1>IFRAME</h1>
    <p> when clicking on the button you should close the iframe window opened by uniguiu </p>
    <button onclick="_close()">Close</button>
  </body>
</html>

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...