Robin Rodricks
Robin Rodricks

Reputation: 113946

Manipulate the session history with JavaScript

I need to delete the latest browser history entry for this reason, but any other functions exposed by JS that manipulate (add/remove) history entries for the current page/tab, are also welcome.

Upvotes: 1

Views: 2185

Answers (3)

Nuno Furtado
Nuno Furtado

Reputation: 4568

That cannot be done using javascript ( within normal parameters that is, you could try exploiting a browser bug and such but i doubt that is the idea here)

Upvotes: 1

i_am_jorf
i_am_jorf

Reputation: 54600

Can you use location.replace on the IFrame?

Upvotes: 1

Ayman Hourieh
Ayman Hourieh

Reputation: 137116

I highly doubt that there is a way. The window.history object provides read-only access to the browsing history for security reasons.

Upvotes: 1

Related Questions