GM.openInTab: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 24: | Line 24: | ||
:* All properties are optional except [[#url|url]]. | :* All properties are optional except [[#url|url]]. | ||
[[# | [[#top|top]] | ||
=== Properties === | === Properties === | ||
---- | ---- | ||
Line 31: | Line 31: | ||
:Usage: <code>'''url''' = "<nowiki>http://www.greasespot.net/</nowiki>";</code> | :Usage: <code>'''url''' = "<nowiki>http://www.greasespot.net/</nowiki>";</code> | ||
[[# | [[#top|top]] | [[#Syntax|back]]'' | ||
== Examples == | == Examples == | ||
Line 38: | Line 38: | ||
</pre></code> | </pre></code> | ||
[[# | [[#top|top]] | ||
== Notes == | == Notes == | ||
[[# | [[#top|top]] | ||
[[Category:API_Reference|G]] | [[Category:API_Reference|G]] |
Revision as of 09:16, 8 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/");