Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

go

The go() method of the History object will make the browser software go forward or back in its browsing history one or more entries according to the number given.

Syntaxhistory.go( number )

Parameters

number Specify the amount of entries to jump to. Negative number makes it go backward. Positive number makes it go forward.

Examples

<button onclick="history.go(-2)">Back 2</button> <button onclick="history.go(2)">Forward 2</button>

JavaScript

Methods

addEventListeneralertaveragebackblurconcatcreatedecodeURIdecodeURIComponentencodeURIencodeURIComponentevaleveryfilterforwardgoisArrayisFiniteisNaNjoinparseFloatparseIntpoppushpushStatereducereplaceStatereverseshiftshuffleslicesomesortspliceunshiftwrite