SetLocationHash Op
sets window.location.hash to the specified value(s)
Summary (oneliner)
allows to manipulate window.location.hash to store data in the url without reloading the page.
given a hash in the first parameter, the op will simply replace the whole part behind the # in the url with the given hash.
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Caniuse query
Inputs
Hash (String)
new value for window.location.hash (without the #)
Update (Trigger)
Active (boolean /Number)
active/inactive
Silent (boolean /Number)
make event not trigger LocationHashRoute op
Allow Empty (boolean /Number)
allow for setting an empty hash, usually triggers a page reload
Patches using SetLocationHash
Changelog
created op 2021-03-30 - stephan | |
added lib: navigo.js 2021-03-30 - stephan | |
Ops.User.stephan.SetLocationHash renamed to Ops.Website.SetLocationHash 2021-03-30 - stephan |