setWinSize
Sets the outerWidth and outerHeight of current window.
See Window at mdn to know about these values.
setWinSize(outerWidth, outerHeight)Parameters#
outerWidth: Anumber. Outside width of the browser window in pixels.outerHeight: Anumber. Outside height of the browser window in pixels.
Returns#
- No value
Example#
setWinSize(1020, 720)