Welcome to WebmasterWorld Guest from 184.73.122.162

Forum Moderators: open

Message Too Old, No Replies

Javascript and History manipulation

History Object in Javascript

     

iPounder

7:49 pm on Jun 8, 2003 (gmt 0)

Inactive Member
Account Expired

 
 


I know that in Javascript you can use the history object for going back and stuff
history.go(-1);
BUT what I want to know that is there a way to get Javascript to remove a page from the browser's history so when you go to the history you won't see the site. I need this for a security feature on my site.

If not in Javascript does anyone know of any other way to do it?

Thank you.

9:45 pm on June 8, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 20, 2002
posts:3732
votes: 0


location.replace('nextpage.html') will remove the current page from the history for the page you are requesting.
12:33 am on June 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 27, 2003
posts:664
votes: 0


"...I need this for a security feature on my site. ..."

Welcome to WebmasterWorld, iPounder!

Korkus is right, but I just thought I'd add: Don't rely on Javascript for security.

Shawn