LOL. I totally understand your wife’s response. Depending on the level of knowledge and skill of the person I’m talking with, the site I recommend would change. I’ll bet, when necessary, she refers to Mozilla Developers Network. W3C schools is not the actual WWW Consortium (https://www.w3.org/). W3C schools has it’s place but it’s more for beginners/amateurs imo. I have some developer/designer friends who say W3C schools has incorrect info but I haven’t seen that myself.
Thanks for posting that sample. I’l try to take a look but it might not be until this weekend.
BTW – https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTop (better and sure to be accurate)
It’s always a good idea to make the wife happy. 😉