Results 1 to 3 of 3

Thread: open url in parent window

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870

    open url in parent window

    Hi,

    i am opening a new IE windows by setting the target to "_blank". The when the user clicks on the ok button the following lines works....
    Code:
    response.Write("<script> opener.parent.main.location.href(' " & url & " ');</script>")
    which should open the url in the parents window. Doesn't work though

    any ideas?

    Many thanks
    Nick
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    the syntax for sending a page to a new url is this:
    Code:
    window.opener.location.href = "http://whereever";

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    that worked a treat

    thanks loads
    Nick
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

Posting Permissions

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



Click Here to Expand Forum to Full Width