back method
[This documentation is preliminary and is subject to change.]
Applies to: desktop apps only
Loads a previous URL from the History list.
This method is not supported for Metro style apps using JavaScript.
Syntax
var retval = history.back(pvargdistance);Standards information
There are no standards that apply here.
Parameters
- pvargdistance [in, optional]
-
Type: VARIANT
Integer that specifies the number of URLs to go back. If no value is provided, the previous URL is loaded.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This method performs the same action as a user clicking the Back button in the browser.
The back method works the same as history.go(-1).
An error does not occur if the user tries to go beyond the beginning of the history. Instead, the user remains at the current page.
See also
Build date: 3/8/2012