Check if a anchor exists in the url Prototype JavaScript

Posted by Podlsk on Stack Overflow See other posts from Stack Overflow or by Podlsk
Published on 2010-04-30T09:44:04Z Indexed on 2010/04/30 9:47 UTC
Read the original article Hit count: 198

Filed under:
|
|

A bit of a basic question but how may I check if a anchor is in the url when I load the page?

For example www.mysite.com/mypage#show

And then in the JavaScript I can go if #show exists do this

Thanks.

© Stack Overflow or respective owner

Related posts about prototype

Related posts about anchor