GM.getValue: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
(Starting from: http://greasemonkey.mozdev.org/authoring.html)
 
(title underscore template)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{underscore|title=GM_getValue}}
= Syntax =
= Syntax =



Revision as of 04:08, 4 November 2006

Template:Underscore

Syntax

GM_getValue( name, default )

Description

Retrieve a value set with GM_setValue. If the value is not found, default is returned instead. If default is not supplied, undefined is returned.

Examples

alert(GM_getValue("foo"));

See Also