I am developing a web application that dynamically changes the location of the hash in the URL according to the requirements of the application.
I use window.location.hash to change this. It works great in the whole browser. For any hashchange in the address, I used the hashchange event, which takes the required action after hashchange is detected.
But these events do not work in Blackberry OS5 browsers. For testing, I use the browser of the BB OS5 9700 simulator. Below I have added sample code.
<html>
<head>
<title>jQuery Address API</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="jquery-1.5.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
window.location.hash=("#issue1");
$(window).bind('hashchange', function() {
alert('firedonchange');
});
});
</script>
</head>
<body>
<h1> HASH ADDRESS CHANGE TEST</h1>
</body>
, url http://test.stk.net, http://test.stk.net/#issue1, hashchange. , Mozilla, chrome, safari, , android, BB OS5 (, BB 9700) .
- , - ? - URL.
.