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.
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
- Available in Safari 5.0 and later.
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
- Available in Safari 5.0 and later.
privateBrowsing
An object representing Safari's Private Browsing feature.
readonly attribute SafariPrivateBrowsing privateBrowsing;
See Also
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.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-07-23)