Jump to content

[SOLVED] popup window help


Lodius2000

Recommended Posts

I suck at js

 

I got this from our own Darkerangel a few months ago, now I am trying to port it to a new website and the popup function is not working

 

it is supposed to link to popup.html, that is in the same page as the page that is calling it

 

here is the function and its call, with a little of the surrounding code

 

</div><!-- hurry -->

<div class="event">
<script type="text/javascript">\nfunction popupwindow() {
new_window = window.open('popup.html','popup','width=501,height=351,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}
</script>
<a href="javascript:popupwindow();"><h3>Event Details – Click Here</h3></a>
</div><!-- event -->


</div><!-- container -->

 

//not sure if that '\' is supposed to be there in '\nfunction popupwindow()' but it does not work with or without it...

 

thanks for the help

Link to comment
https://forums.phpfreaks.com/topic/144724-solved-popup-window-help/
Share on other sites

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.