history.pushState:Adding an Entry to the Browser History
Adding an Entry to the Browser History
<!DOCTYPE HTML>
<html>
<head>
<title>Example</title>
</head>
<body>
<script type="text/javascript">
window.history.pushState("", "", "?asdf");
</script>
</body>
</html>
Home
JavaScript Book
DOM
JavaScript Book
DOM
History:
- The History Object
- history.back()
- history.forward()
- history.go(url/number)
- history.length
- history.pushState:Adding an Entry to the Browser History