Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Feb 2005
    Location
    Lawrence, Kansas
    Posts
    125
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macintosh Page returns to home after loading window (IE)

    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!

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,680
    Thanks
    0
    Thanked 230 Times in 225 Posts
    Hi there grubesteak,

    try putting a hash (#) in this link...
    Code:
    <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...
    Code:
    <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

  • #3
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try adding -

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

  • #4
    Regular Coder
    Join Date
    Feb 2005
    Location
    Lawrence, Kansas
    Posts
    125
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yay! Thanks so much. You guys rock.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •