...

View Full Version : Page returns to home after loading window (IE)



grubesteak
05-23-2005, 09:27 PM
Hi all,

Disclaimer: I'm a newbie to JavaScript.

The problem is, when I click on a link and have it open in a pop up window (it's a photo gallery), the window stays open, but the page returns to the home page in IE.

Can anyone help? Here's the link:

http://www.cynthiawhalen.com/test/prices.php

Thanks in advance!

coothead
05-23-2005, 09:41 PM
Hi there grubesteak,

try putting a hash (#) in this link...

<a href="" class="tn" onClick="MM_openBrWindow('wndowpages/picture1.php','','width=410,height=550')"><img src="images/tn/malenude_1_tn.jpg" alt="" /></a>

...thus...

<a href="#" class="tn" onClick="MM_openBrWindow('wndowpages/picture1.php','','width=410,height=550')"><img src="images/tn/malenude_1_tn.jpg" alt="" /></a>
..and all the others.

coothead

mark87
05-23-2005, 09:45 PM
Try adding -


onClick="MM_openBrWindow('wndowpages/picture1.php','','width=410,height=550'); return false"

grubesteak
05-24-2005, 12:57 AM
Yay! Thanks so much. You guys rock.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum