GM.openInTab: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
m Text replace - "{{Samp |1=<pre style="border: none; margin: inherit;">" to "<pre class='sample'>" |
|||
Line 29: | Line 29: | ||
== Examples == | == Examples == | ||
<pre class='sample'> | |||
GM_openInTab("http://www.greasespot.net/"); | GM_openInTab("http://www.greasespot.net/"); | ||
</pre>}} | </pre>}} | ||
[[Category:API_Reference|O]] | [[Category:API_Reference|O]] |
Revision as of 21:58, 3 February 2010
Description
This API method opens the specified URL in a new background tab. Foreground loading may be globally overridden by setting the Mozilla preference browser.tabs.loadInBackground
to false
in about:config.
Syntax
GM_openInTab( url )
- Value: Function
- Returns: undefined
- 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/");
}}