Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Open new page in the same window

Reply
Thread Tools

Open new page in the same window

 
 
Netx
Guest
Posts: n/a
 
      01-16-2009
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

 
Reply With Quote
 
 
 
 
Netx
Guest
Posts: n/a
 
      01-16-2009
Ok, I have just found it:
document.location.href = "new.html";
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Window.Open get new tab instead of new window in FireFox Fredzidd@gmail.com Javascript 1 02-29-2008 03:06 AM
window.open() Not Opening in Same Window All The Time k.vanderstarren@gmail.com Javascript 4 04-18-2006 09:15 PM
Open new page in the same browser window? Benton Javascript 3 03-02-2006 03:12 AM
window.open() doesn't open new Window in Opera PC HUA Javascript 2 05-19-2004 02:29 AM
Need to open a new browser window, not a new window Gordon ASP General 3 04-16-2004 10:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57