Jump to content

popup window displaying a page


c-o-d-e

Recommended Posts

The following code doesn't create a popup, displaying the page wicaptcha.php

It does nothing, whats the problem?

	  <script type="text/javascript">
  function popUp(URL) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "',
  'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=500,left = 390,top = 150');");
  }
      </script>

<a href="#" onclick="popUp('/wicaptcha.php');">Whats this?</a>

Link to comment
https://forums.phpfreaks.com/topic/188736-popup-window-displaying-a-page/
Share on other sites

I changed it to

window.open(URL,id,"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=500,left = 390,top = 150"); 

 

Although on firefox, it is still resizable. How can this be prevented.

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.