Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Splitting on several lines
Message
From
03/06/2013 08:29:04
 
 
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01575403
Message ID:
01575490
Views:
29
>My code is functionally identical to the original. Yours is not : If pageYOffset is available you are returning scrolltop rather than pageYOffset.
>
>Thierry gave you the best solution (but ignored your requirement to use more lines :-})

I had the assumption that pageYOffset was a detection mechanism and not capable of returning a value. So, basically, in the chain of priority, if pageYOffset is available, it will be that one, then documentElement.scrollTop and then body.scrollTop.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform