GM.openInTab: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
Marti (talk | contribs)
mNo edit summary
Marti (talk | contribs)
mNo edit summary
Line 24: Line 24:
:* All properties are optional except [[#url|url]].
:* All properties are optional except [[#url|url]].


[[#Description|top]]
[[#top|top]]
=== Properties ===
=== Properties ===
----
----
Line 31: Line 31:
:Usage: <code>'''url''' = "<nowiki>http://www.greasespot.net/</nowiki>";</code>
:Usage: <code>'''url''' = "<nowiki>http://www.greasespot.net/</nowiki>";</code>


[[#Description|top]] | [[#Syntax|back]]''
[[#top|top]] | [[#Syntax|back]]''


== Examples ==
== Examples ==
Line 38: Line 38:
</pre></code>
</pre></code>


[[#Description|top]]
[[#top|top]]


== Notes ==
== Notes ==
[[#Description|top]]
[[#top|top]]


[[Category:API_Reference|G]]
[[Category:API_Reference|G]]

Revision as of 09:16, 8 December 2007

Template:Underscore


Description

This API method opens the specified URL in a new tab.

Examples | Notes

Syntax

GM_openInTab( url )

Value: Function
Returns: Nothing
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

GM_openInTab("http://www.greasespot.net/");

top

Notes

top