Console
hyTags
Home
Home
Documentation
Documentation
window-get-scroll-x
Gets the horizontal scroll position of the window.
Parameter
Type
Description
return
number
The horizontal scroll position in pixels
Test Case:
Get scroll X initially zero
<div></div>
<div></div>
<window-get-scroll-x> <assert-equal value="0" type="number">
<window-get-scroll-x> <assert-equal value="0" type="number">
👆 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