You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
307 B
17 lines
307 B
7 years ago
|
<!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>
|