Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

Thanks in Advance !

Uday

share|improve this question

closed as not a real question by SvW, 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.

add comment

1 Answer 1

I believe what you are looking for is:

history.pushState( stateObj, title, url );

And definitely read: https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history

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: benalman.com/projects/jquery-hashchange-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
add comment

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