#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    229
    Rep Power
    13

    QUICK! easy javascript question - popups


    this code in around a link in a popup window. when I click on the link, I want the main window to go to the new page, and have it come to the front. this code works great in IE, but not in NS. what code will work in both browsers?
    THANKS!

    <a href="javascriptpener.document.location('../mf_inlink_prospectus.htm'); opener.focus();">Prospectus</a>
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    229
    Rep Power
    13

    oops, here's the code again - no smiley faces


    <a href="javascript:opener.document.location('../mf_inlink_prospectus.htm'); opener.focus();">Prospectus</a>
  4. #3
  5. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    Liked it better with the smiley....

    <a href="#" onclick="if(opener&&!opener.closed)opener.location='http://www.google.com';self.blur();return false;">Prospectus</a>
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    229
    Rep Power
    13

    thanks


    I'll try that and let you know... THANKS!
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    229
    Rep Power
    13

    you got me on the right track


    what ended up working was this:

    <a href="#" onclick="if(opener&&!opener.closed)opener.location='../mf_inlink_prospectus.htm';opener.focus();return false;">

    so thanks for gearing me in the right direction!

IMN logo majestic logo threadwatch logo seochat tools logo