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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...