Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This function returns the size of the browser window as an object with 2 properties:

  • width - browser window width in pixels
  • height - browser window height in pixels

Example:

// the following code retrieves the browser window width and height
var winSize = pui.getWindowSize();
var winWidth = winSize.width;
var winHeight = winSize.height;
  • No labels