Difference between revisions of "GM.getValue"

From GreaseSpot Wiki
Jump to navigationJump to search
(title underscore template)
m (categorized)
Line 19: Line 19:


* [[GM_setValue]]
* [[GM_setValue]]
[[Category:API Reference|S]]

Revision as of 22:28, 5 December 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