src code

class method document.viewport.getWidth

document.viewport.getWidth() → Number

Returns the width of the viewport.