Animations
API
Arrays
Async
Basics
Challenges
Classes
Console
Dates
Debugging
DOM Elements
DOM Methods
DOM Properties
Event Listeners
Flow Control
Forms
Functions
Global Functions
JSON
Keywords
Libraries (3rd party)
Math
Modules
Objects
Snippets
String
Types
Widgets
Window Object
The window.history
object contains the browser's history.
Two common examples are:
history.back()
- same as clicking back in the browserhistory.forward()
- same as clicking forward in the browser
function goBack()
{
window.history.back();
}
...or...
function goForward()
{
window.history.forward();
}