Created
December 19, 2012 12:31
-
-
Save oogatta/4336366 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Cache-Control:no-cache"); | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body onload="document.getElementById('test').innerHTML='JS time:'+(new Date()).toString();" onunload=""> | |
<?php | |
echo "PHP time:" . date("Y/m/d g:i:s"); | |
?> | |
<p id="test"></p> | |
<p><a href="modoru.php">traverse</a></p> | |
<script type="text/javascript"> | |
var kido = { | |
ibuki : null | |
}; | |
window.onpageshow = function(evt) { | |
if ( evt.persisted ) { | |
alert("yay! bfcache!"); | |
} | |
}; | |
</script> | |
<button onclick="kido.ibuki='wow'">set</button> | |
<button onclick="alert(kido.ibuki);">alert</button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment