Catch #anchor link onLoad


I have been looking for days for a solution on this.

What I want is for jQuery to do something when the page has loaded depending on the anchor in the URL.

For example:

Do these come under the onLoad event or something else?

Any advice appreciated. Thanks.

Test the value stored in location.hash at whatever point in the processing where you need to know what follows the #