Safari Reference Library Apple Developer
Search

SafariApplication Class Reference

Inherits from
Technology area
Safari Extensions
Availability
Available in Safari 5.0 and later.

Overview

The SafariApplication class allows a Safari extension to interact with the Safari application.

Tasks

Creating Browser Windows

Accessing Browser Windows

Properties

activeBrowserWindow

The active browser window.

readonly attribute SafariBrowserWindow activeBrowserWindow
Discussion

If there are no open browser windows, the value of this attribute is null.

Availability

browserWindows

The current browser windows, in order from front to back.

readonly attribute array browserWindows
Discussion

If there are no browser windows, the array is empty.

Using activeBrowserWindow is more efficient if you only want the frontmost window.

Availability

Methods

openBrowserWindow

Opens a new browser window in front of all other windows.

SafariBrowserWindow openBrowserWindow (void);

Return Value

The newly opened window.

Availability
  • Available in Safari 5.0 and later.



Last updated: 2010-07-13

Did this document help you? Yes It's good, but... Not helpful...