jquery get url hash value code example Example 1: javascript change url hash window.location.hash = '#hash_value'; Example 2: get hash js location.hash