homepage Welcome to WebmasterWorld Guest from 54.204.128.190
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Javascript and History manipulation
History Object in Javascript
iPounder




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

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.

 

korkus2000




msg:1488463
 9:45 pm on Jun 8, 2003 (gmt 0)

location.replace('nextpage.html') will remove the current page from the history for the page you are requesting.

ShawnR




msg:1488464
 12:33 am on Jun 9, 2003 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved