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 4 Current »

Content Freeze

As of July 25th, 2023, there is a content freeze on this page.

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