Popup

Functions

Util.popup

Definition

Name
Util.popup
Shorthand
u.popup
Syntax
Window = Util.popup( String url [, JSON settings ] );

Description

Create a popup-window, centered on the screen, and return reference to the new window.

Parameters

url
String url to open in popup window
settings
JSON popup window settings
Options
name
Name of popup window - default timestamp based name
width
Width of popup window - default 330px
height
Height of popup window - default 150px
extra
Extra popup settings string to set additional popup settings, default scrollbars visible

Return values

Window reference to new popup window

Examples

Util.popup("test.html", {"name":"popup","width":400, "height":300});

Opens popup with name popup, 400px wide and 300px high.

Dependencies

JavaScript
  • Date
  • window.open
Manipulator

none

Files

Main file

  • u-popup.js

Segment support files

  • none

Segment dependencies

desktop_edge
u-popup.js
desktop_ie11
u-popup.js
desktop
u-popup.js
desktop_ie10
u-popup.js
desktop_ie9
u-popup.js
desktop_light
u-popup.js
tablet
u-popup.js
tablet_light
u-popup.js
smartphone
u-popup.js
mobile
not tested
mobile_light
not tested
tv
u-popup.js
seo
not supported