GM.openInTab
From GreaseSpot Wiki
Greasemonkey Manual |
Using Greasemonkey |
---|
Installing Scripts |
Monkey Menu |
Getting Help |
User Script Authoring |
Editing |
Environment |
API |
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/";