jsToolboxMJK.funcs.openPopup() - mkloubert/jsToolbox GitHub Wiki
$jsTB.funcs.openPopup(url [, nameOrOpts]) function
Opens a popup window.
Syntax
$jsTB.funcs.openPopup(url [, nameOrOpts]);
Parameters
Name | Type | Description |
---|---|---|
url | String | The URL to open. |
nameOrOpts | mixed | [OPTIONAL] The name / ID of the new window (if a string) or additional options (if object). |
Result
The jQuery selector with the window (object).
Examples
$jsTB.funcs.openPopup('https://github.com');
// without specific ID
$jsTB.funcs.openPopup('https://github.com',
'GitHubPopup');