GM.openInTab: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m Text replace - "top " to ""
m Text replace - "Examples | Notes " to ""
Line 4: Line 4:


This [[API_reference|API]] method opens the specified URL in a new background tab.  Foreground loading may be globally overridden by setting the Mozilla preference <code>browser.tabs.loadInBackground</code> to <code>false</code> in [http://kb.mozillazine.org/About:config about:config].
This [[API_reference|API]] method opens the specified URL in a new background tab.  Foreground loading may be globally overridden by setting the Mozilla preference <code>browser.tabs.loadInBackground</code> to <code>false</code> in [http://kb.mozillazine.org/About:config about:config].
[[#Examples|Examples]] | [[#Notes|Notes]]


== Syntax ==
== Syntax ==

Revision as of 21:44, 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.

top

Properties


url

Value: String
Usage: url = "http://www.greasespot.net/";

top | back

Examples

Template:Samp