Skip to content

Instantly share code, notes, and snippets.

@jdlrobson
Created June 17, 2013 22:31
Show Gist options
  • Save jdlrobson/5801089 to your computer and use it in GitHub Desktop.
Save jdlrobson/5801089 to your computer and use it in GitHub Desktop.
When run from http (not file uri) the address bar is updated to be "crêpe.html" (Chrome and Firefox)
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="javascripts/externals/history.js"></script>
<script type="text/javascript" src="javascripts/externals/history.adapter.jquery.js"></script>
</head>
<body>
<script type="text/javascript">
History.replaceState( null, "Crêpe" );
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment