UnsafeWindow

From GreaseSpot Wiki
Revision as of 06:23, 6 November 2006 by Verifex (talk | contribs) (Basic unsafeWindow setup.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Template:Title=unsafeWindow

Syntax

unsafeWindow

Description

Userscripts can use this object to access document functions, variables and other elements in the document. unsafeWindow is a object wrapper for the entire document object.

Examples

unsafeWindow.document.title="Testing"
unsafeWindow.TestVarCreatedByDocument="Testing"
unsafeWindow.document.TestFunction("Test")