SetViewportSize Method (BrowserWindow)

Action

Sets the size of the browser window to the specified width and height.

Syntax

C#
browserWindow.SetViewportSize(width, height)
VB
browserWindow.SetViewportSize(width, height)
Variable Description
width The new width of the browser window. Integer.
height The new height of the browser window. Integer.