/    Sign up×
Community /Pin to ProfileBookmark

How to force history list to clear in IE

Is there a programmable way to force the url history list to clear in IE?
I don’t want to have the user manually do via Tools/Internet Options/Clear History button. I want the history list to get cleared via JavaScript upon logout.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@mrhooJan 25.2007 — No.

But you can open a new window for your page and not load any new pages in that window.
Copy linkTweet thisAlerts:
@A1ien51Jan 25.2007 — Nope

You can play with replace() with you want to screw with the user experience.

Eric
Copy linkTweet thisAlerts:
@slaughtersJan 25.2007 — No.

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

Best used for when you want to navigate away from an intermediate page that was used as the target of a form.

Using location.replace('nextpage.html') to navigate to nextpage.html will prevent the intermediate page from showing up in the History list, so if the user clicks on the back button it will not update the database twice.
×

Success!

Help @tortuga64 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...