Search code examples
javascripthashsafarihashchange

Does onHashChange work in Safari?


Does onHashChange or hashChange work in Safari? I tested it with Safari 4.0.4 on Windows 7 and it doesn't work for me.

If it doesn't work, is there any solution to track if the hash has changed?


Solution

  • In Safari 4.0.4 it's not working yet but in the latest one works fine. And I didn't find any acceptable solutions to track if the hash has changed for those browsers which don't support onHashChange.