Home > Language Reference > Web Functions > PreviousPage

PreviousPage

The PreviousPage function clicks the Back button in the current browser window.

Usage

A click on the Back button is not recorded. If you need to use such a click, add manually this function in the script. Using this function makes the script replay the Back button whatever browser is used, IE or Firefox.

Syntax

PreviousPage()

Parameters

No parameter.

Remarks

No error is reported if there is no previous page to use.

Examples

StartBrowser("IE","www.wintask.com/demos",3)
UsePage("WinTask Demonstration Pages")
ClickHTMLElement("A[INNERTEXT= 'Form']")
PreviousPage()
'Coming back to main page
UsePage("WinTask Demonstration Pages")


StartBrowser("FF","www.wintask.com/demos",3)
UsePage("WinTask Demonstration Pages")
ClickHTMLElement("A[INNERTEXT= 'Form']")
PreviousPage()
'Coming back to main page
UsePage("WinTask Demonstration Pages")