www.webdeveloper.com
Results 1 to 3 of 3

Thread: How do I.. Open a webpage in the current page.

  1. #1
    Join Date
    May 2006
    Posts
    69

    How do I.. Open a webpage in the current page.

    Hi,

    I'm writing a webpage for a family tree website, and depending on which member of the family you choose from an image map will send the user off to a page specific to the member you've chosen from the image map.

    I am using Javascript to build the URL, but would like the page to open in the current page, not a new window as
    Code:
    window.open("gallery1.htm?Page"+famid)
    does.

    I'm sure it's something stupidly simple.. But can anyone help as it's doing my nut!

    Thanks.

    Jason.

  2. #2
    Join Date
    Dec 2004
    Posts
    8,637
    Try this:

    window.open("gallery1.htm?Page"+famid, "_self");

  3. #3
    Join Date
    May 2006
    Posts
    69
    Wow.
    Brilliant!

    Thank you.

    Jason.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles