1

I've got a couple of tabs on my page and I'd like the switching between them to be back-button-able

My idea was to let the tab-buttons link through to #tab1 and #tab2, and then let jquery pick up the #tabX and show/hide the relevant tab.

Is this possible? How can i get access to the #whatever in the url from jquery/javascript?

Thanks

Andrew

1 Answer 1

1

You're looking for

location.hash

You might also save a lot of time by looking at this jquery history plugin. Good luck!

Sign up to request clarification or add additional context in comments.

1 Comment

fyi that plugin is bugged with jquery 1.3.2 in chrome :(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.