GM.openInTab: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
mNo edit summary |
m →Syntax |
||
Line 12: | Line 12: | ||
'''GM_openInTab(''' ''url'' ''')''' | '''GM_openInTab(''' ''url'' ''')''' | ||
:Value: Function | |||
:Returns: Nothing | :Returns: Nothing | ||
:Compatibility: [[Version_history#0.5_beta|Greasemonkey 0.5b+]] | :Compatibility: [[Version_history#0.5_beta|Greasemonkey 0.5b+]] |
Revision as of 05:42, 7 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/");