pui.getWindowSize()



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;