Javascript Popup

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
aravona
Forum Contributor
Posts: 347
Joined: Sat Jun 13, 2009 3:59 pm
Location: England

Javascript Popup

Post by aravona »

I've got a simple Javascript popup for a website, which is to contain links.

What I want (and cannot quite grasp) is to get the links to open in the original window. Is this possible? Or will they have to open in a new window?

the website in question On this site, down the bottom is a flashing blue button, which opens the popup window.

I would love some guidance on this if someone has the time to help me :)

Regards,

Aravona.
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: Javascript Popup

Post by kaszu »

Remove onlick attribute from:

Code: Select all

<a onclick="return popitup('http://www.samleisure.co.uk/wordpress/wp-content/themes/LSO_WPv0.1/popupex.php')" href="http://www.samleisure.co.uk/wordpress/wp-content/themes/LSO_WPv0.1/popupex.php">
Should be:

Code: Select all

<a href="http://www.samleisure.co.uk/wordpress/wp-content/themes/LSO_WPv0.1/popupex.php">
Post Reply