Skip to main content

setWinSize

Sets the outerWidth and outerHeight of current window.

See Window at mdn to know about these values.

setWinSize(outerWidth, outerHeight)

Parameters#

  • outerWidth: A number. Outside width of the browser window in pixels.
  • outerHeight: A number. Outside height of the browser window in pixels.

Returns#

  • No value

Example#

setWinSize(1020, 720)