GM.openInTab: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
mNo edit summary |
m →Syntax: Monkey colored tables |
||
Line 16: | Line 16: | ||
:Compatibility: [[Version_history#0.5_beta|Greasemonkey 0.5b+]] | :Compatibility: [[Version_history#0.5_beta|Greasemonkey 0.5b+]] | ||
:{| | :{| cellpadding="5" style="border-style:solid; background:#FFFFE0;" | ||
|+ Parameters | |+ Parameters | ||
!|'''Properties''' | !style="background:#CC9900;"|'''Properties''' | ||
|- | |- | ||
| <code>[[#url |url]]</code> | | <code><span style="background:#FFFFE0;">[[#url |url]]</span></code> | ||
|} | |} | ||
:* All properties are optional except [[#url|url]]. | :* All properties are optional except [[#url|url]]. |
Revision as of 22:21, 11 December 2007
Description
This API method opens the specified URL in a new tab.
Syntax
GM_openInTab( url )
- Value: Function
- Returns: Nothing
- Compatibility: Greasemonkey 0.5b+
Parameters Properties url
- All properties are optional except url.
Properties
url
- Value: String
- Usage:
url = "http://www.greasespot.net/";
Examples
GM_openInTab("http://www.greasespot.net/");