Difference between revisions of "GM.openInTab"

From GreaseSpot Wiki
Jump to navigationJump to search
m (→‎Syntax: Monkey colored tables)
Line 4: Line 4:
== Description ==
== Description ==


This [[API_reference|API]] method opens the specified URL in a new tab.
This [[API_reference|API]] method opens the specified URL in a new tab, but doesn't switch to it.


[[#Examples|Examples]] | [[#Notes|Notes]]
[[#Examples|Examples]] | [[#Notes|Notes]]

Revision as of 16:54, 29 December 2008

Template:Underscore


Description

This API method opens the specified URL in a new tab, but doesn't switch to it.

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