GM.openInTab: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
m →Syntax: Monkey colored tables |
|||
Line 4: | Line 4: | ||
== Description == | == Description == | ||
This [[API_reference|API]] method opens the specified URL in a new tab. | This [[API_reference|API]] method opens the specified URL in a new tab, but doesn't switch to it. | ||
[[#Examples|Examples]] | [[#Notes|Notes]] | [[#Examples|Examples]] | [[#Notes|Notes]] |
Revision as of 20:54, 29 December 2008
Description
This API method opens the specified URL in a new tab, but doesn't switch to it.
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/");