Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add some items in history using javascript? Is there any way to do it?

Thanks in Advance !


share|improve this question

closed as not a real question by Sven, Zoredache, theotherreceive, Chopper3 Jun 30 '11 at 10:29

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

I believe what you are looking for is:

history.pushState( stateObj, title, url );

And definitely read:

History states definitely still have limitations in terms of cross-browser compatibility, so if you are looking to solve for old versions of IE, etc... you may need to just update the #hashmark on the url.

share|improve this answer
Thanks for the reply but but unfortunately it doesn’t support IE browser. Can you please suggest some solution for it? – Uday Jul 5 '11 at 11:47
If using jQuery is an option, I highly recommend this plugin: It focuses on using the history api, but with jQuery's support provides a cross-browser solution. – Jacob Swartwood Jul 8 '11 at 14:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.