GM.openInTab: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
m categorized + removed link from example code |
Symmetry update |
||
Line 1: | Line 1: | ||
{{underscore|title=GM_openInTab}} | {{underscore|title=GM_openInTab}} | ||
__NOTOC__ | |||
= Syntax = | == Description == | ||
This [[API_reference|API]] method opens the specified URL in a new tab. | |||
[[#Examples|Examples]] | [[#Notes|Notes]] | |||
== Syntax == | |||
'''GM_openInTab(''' ''url'' ''')''' | '''GM_openInTab(''' ''url'' ''')''' | ||
= Description = | :Returns: Nothing | ||
:Compatibility: [[Version_history#0.5_beta|Greasemonkey 0.5b+]] | |||
:{| border="1" cellpadding="5" | |||
|+ Parameters | |||
!|'''Properties''' | |||
|- | |||
| <code>[[#url |url]]</code> | |||
|} | |||
:* All properties are optional except [[#url|url]]. | |||
[[#Description|top]] | |||
=== Properties === | |||
---- | |||
==== <code>url</code> ==== | |||
:Value: String | |||
:Usage: <code>'''url''' = "<nowiki>http://www.greasespot.net/</nowiki>";</code> | |||
[[#Description|top]] | [[#Syntax|back]]'' | |||
= Examples = | = Examples = | ||
<code><pre> | |||
GM_openInTab("http://www.greasespot.net/"); | |||
</pre></code> | |||
[[#Description|top]] | |||
= Notes = | |||
[[#Description|top]] | |||
[[Category: | [[Category:API_Reference|O]] |
Revision as of 03:20, 7 December 2007
Description
This API method opens the specified URL in a new tab.
Syntax
GM_openInTab( url )
- 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/");