goog.window
Functions
open( linkRef, opt_options, opt_parentWin ) → (Window|null)
(Window|null)
Opens a new window.
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
openBlank( opt_message, opt_options, opt_parentWin ) → (Window|null)
(Window|null)
Opens a new window without any real content in it.
This can be used to get around popup blockers if you need to open a window in response to a user event, but need to do asynchronous work to determine the URL to open, and then set the URL later.
Example usage:
var newWin = goog.window.openBlank('Loading...'); setTimeout( function() { newWin.location.href = 'http://www.google.com'; }, 100);
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
popup( linkRef, opt_options ) → boolean
boolean
Raise a help popup window, defaulting to "Google standard" size and name.
(If your project is using GXPs, consider using PopUpLink.gxp
.)
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
Properties
DEFAULT_POPUP_HEIGHT → number
number
Default height for popup windows
DEFAULT_POPUP_TARGET → string
string
Default target for popup windows
DEFAULT_POPUP_WIDTH → number
number
Default width for popup windows