Independent cross-browser library for handling location.hash

I need an independent JavaScript Javascript library to handle location.hash. not jQuery. not dojo.hash. and if it uses HTML 5 which is always welcome

+3
source share
3 answers

Instead of native hashchange support (IE8 +, FFx 3.6+, WebKits from 528+), you need to check the location changes for changes.

0
source

lib, - location.hash .
watch , document.location.hash. :


window.location.watch(
  'hash',
  function(id,oldVal,newVal){
     console.log("the window hash value has changed from "+oldval+" to "+newVal);
  }
);
, , - , , "" . .
0

It has everything you need: All-In-One All-In-One No-Bullshit All-Alphabetical HTML5 Crash User Guide You can see the different libraries in the Firewall Management section .

For a good hash change library see this: History.js

0
source

Source: https://habr.com/ru/post/1782420/


All Articles