GetSelectedTab Method (BrowserApplication)

Class

BrowserApplication.

Action

Returns the browser window that is currently selected.

Availability

This function is supported only in scripts that use the Open Agent, and works with the following browsers:
  • Mozilla Firefox
  • Internet Explorer 7.0 or later
  • Google Chrome

Syntax

browserWindow = browserApplication.GetSelectedTab()

Example

[ ] Window w
[ ] w = browser.GetSelectedTab()
[-] if(w != NULL)
	[ ] Print(The selected browser window is", w)