Console
hyTags
Home
Home
Documentation
Documentation
window-get-width
Gets the width of the browser window's viewport.
Parameter
Type
Description
return
number
The width of the viewport in pixels
Test Case:
Get window width returns number
<div></div>
<div></div>
<window-get-width> <number-is-greater other="-1"> <assert-true>
<window-get-width> <number-is-greater other="-1"> <assert-true>
👆 Try to change something!
Live preview
Run
Array
Assert
Attribute
Bool
Class
Closure
Cookie
Data
Date
DateTime
Debug
Element
Error
Event
Form
Fragment
Function
If
Input
Items
Javascript
Loop
Number
Object
Page
Property
Rect
Request
Response
Selection
Storage
String
Style
Time
Url
Value
Var
Window
Quick Reference
Test succeeded
Test failed