Method: history.back()

Availability

BlackBerry® Device Software version 3.8 or later

The back() method displays the previous URL in the BlackBerry® Browser History list. This method is functionally equivalent to the user clicking Back in the BlackBerry Browser menu or clicking the Escape key during a browser session, or specifying History.go(-1).

Syntax

history.back()

Parameters

None.

Return values

None.

Exceptions

None.

Examples

The following code fragment adds a custom button to an HTML page that displays the previous item in the History list:

<INPUT TYPE="button" VALUE="Back" onClick="window.history.back()">


Was this information helpful? Send us your comments.