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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

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.