Mysteriis
Mysteriis

Reputation: 39

Force JS change the URL'S when change page

I'm using jquery to load an external portion (ex: content ) of a file and animate the page when the user clicks a link. My problem is: I want to change the url when the user clicks a link. Something like http://www.gop.com.pt/#!youAreHere

You can see it here in action

Thanks

Upvotes: 0

Views: 336

Answers (1)

Tom Walters
Tom Walters

Reputation: 15616

You don't need jQuery for this, you can simply use JavaScript:

document.location.hash = '!youAreHere';

Upvotes: 1

Related Questions