PDA

View Full Version : Popup Window



martin coombes
05-19-2009, 08:09 PM
1) Script Title: Auto-centering Popup Window

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/autocenter.htm

3) Describe problem: I get the pop up window, but the orginal page also changes. Need help, all my external links do not open in new windows. what can i do.

rangana
05-20-2009, 01:15 AM
Ensure to cancel the anchor tag's normal behavior by using event.preventDefault() or by simply adding highlighted:


onclick="NewWindow(this.href,'name','400','400','yes');return false"


Hope that helps.

martin coombes
05-20-2009, 05:28 AM
I already have the "return false" code. I have added a complete link that I am using, please let me know if you can spot an error. Many thanks.

<A HREF="http://www.harzinfo.de" onclick="NewWindow(this.href,'name','600','600','yes');return false"><IMG SRC="logo_hvv_neu.jpg" WIDTH="148" HEIGHT="61" ALT="Harzer tourist board"></A>

rangana
05-20-2009, 05:31 AM
It works fine on my end. Please provide a link to your page.

martin coombes
05-20-2009, 08:43 AM
http://www.abbeywood-antiques.co.uk/bad%20grund.html

please look and see if you can spot the error, many thanks for your time

rangana
05-20-2009, 09:09 AM
It works fine on my end. Tested across IE, FF, Safari, Opera and Chrome.

Ensure you have JS enabled at your end.

martin coombes
05-20-2009, 11:50 AM
Hi, thanks for your time. The code works on my computer, but my wifes computer next to me it does not. You mentioned JS, sorry could you explain what that is.

martin coombes
05-20-2009, 12:12 PM
ignore that comment, I understand what JS is although I do not know how to check my wifes computer to see if its enabled.