There are no tracking or monitoring cookies on this site. There are only cookies used for documentation examples related to cookies.
Close

Processing...
This may take a few seconds.

add-hash

Syntax

add-hash: "#hash" ["page title"] [remove-last-hash] [every (time)] [after (time)][, (class)...];

#hash = Hash text to add onto the URL, eg. #horse or #/mydir/dave.

page title = Optional - the browser page title text to display.

remove-last-hash = Optional - remove the last hash value in the URL before adding the new hash.

 

This command adds a hash to the URL. An example of its use can be found on the SPA image modal gallery page.