blob: ad95f698028559b71d2ac763099eb3c6b0731898 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>hashchange test</title>
</head>
<body style="background:red;overflow:hidden;">
<script>
addEventListener('hashchange', function() {
document.body.style.background = 'lime';
}, false);
location.hash = Math.random();
</script>
</body>
</html>
|