UnsafeWindow: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
(Basic unsafeWindow setup.)
(No difference)

Revision as of 06:23, 6 November 2006

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")