hyTags
HomeHome DocumentationDocumentation

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>
    
    <window-get-width>
    <number-is-greater other="-1">
    <assert-true>
    
    👆 Try to change something!
  • Test succeeded Test failed