GM.openInTab: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
m →Syntax |
mNo edit summary |
||
Line 33: | Line 33: | ||
[[#Description|top]] | [[#Syntax|back]]'' | [[#Description|top]] | [[#Syntax|back]]'' | ||
= Examples = | == Examples == | ||
<code><pre> | <code><pre> | ||
GM_openInTab("http://www.greasespot.net/"); | GM_openInTab("http://www.greasespot.net/"); | ||
Line 40: | Line 40: | ||
[[#Description|top]] | [[#Description|top]] | ||
= Notes = | == Notes == | ||
[[#Description|top]] | [[#Description|top]] | ||
[[Category:API_Reference|G]] | [[Category:API_Reference|G]] |
Revision as of 05:48, 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/");