Open new page in the same window

Discussion in 'Javascript' started by Netx, Jan 16, 2009.

  1. Netx

    Netx Guest

    What syntax should I use to open for example "index.html" in the
    same window? Currently in <td> i have:
    <td
    onClick="document.open('index.html','_self');">
    >

    which displays a blank page after clicking and not "index.html".

    Mark
    Netx, Jan 16, 2009
    #1
    1. Advertising

  2. Netx

    Netx Guest

    Ok, I have just found it:
    document.location.href = "new.html";
    Netx, Jan 16, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gordon
    Replies:
    3
    Views:
    286
    Steven Burn
    Apr 16, 2004
  2. PC HUA
    Replies:
    2
    Views:
    390
    PC HUA
    May 19, 2004
  3. Benton
    Replies:
    3
    Views:
    149
    Thomas 'PointedEars' Lahn
    Mar 2, 2006
  4. Replies:
    4
    Views:
    172
  5. Replies:
    1
    Views:
    223
Loading...

Share This Page