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>


Opens the specified URL in a new tab.
[[#Description|top]] | [[#Syntax|back]]''


= Examples =
= Examples =
<code><pre>
GM_openInTab("http://www.greasespot.net/");
</pre></code>


GM_openInTab("<nowiki>http://greasemonkey.mozdev.org/</nowiki>");
[[#Description|top]]


= Notes =
[[#Description|top]]


[[Category:API Reference|O]]
[[Category:API_Reference|O]]

Revision as of 03:20, 7 December 2007

Template:Underscore


Description

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

Examples | Notes

Syntax

GM_openInTab( url )

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