GM.openInTab: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
m →Description: Noted about foreground loading in 0.8.2... btw I get "Error: Permission denied..." when I try to use any object on the returned window handle in 3.5.3 ... sf |
removing referrer issue which was fixed (going to sleep now) :) |
||
Line 38: | Line 38: | ||
GM_openInTab("http://www.greasespot.net/"); | GM_openInTab("http://www.greasespot.net/"); | ||
</pre>}} | </pre>}} | ||
[[#top|top]] | [[#top|top]] | ||
[[Category:API_Reference|O]] | [[Category:API_Reference|O]] |
Revision as of 09:14, 3 October 2009
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/";