"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
"steve" <rca...@hotmail.com> wrote in message
news:1ef801c2ee5d$5cdecdf0$3401...@phx.gbl...
Could you give me more details?
What's document.documentElement - IHTMLDocument2 or ...?
Thanks.
steve
>.
>
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
"steve" <rca...@hotmail.com> wrote in message
news:1f8001c2ee70$98655200$3301...@phx.gbl...
Thanks.
steve
>.
>
frames(0).document.body.scrollTop
frames(1).document.documentElement.scrollTop
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
"steve" <rca...@hotmail.com> wrote in message
news:1e4501c2ef0d$f89bf960$a501...@phx.gbl...
Thanks for your reply. Which function I should use for
regular multiple frames?
Thanks.
steve
>.
>
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
"steve" <rca...@hotmail.com> wrote in message
news:1fa701c2ef2e$64376040$a501...@phx.gbl...
How do you know vovida use "frames(0).document.body" for
the 1st frame? How to detect these kind of web pages?
Thanks.
steve
>.
>
It looks like the following will be pretty reliable:
var top = document.body.scrollTop + document.documentElement.scrollTop;
Either one or the other additive, depending on the mode, is going to be
zero.
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
"steve" <rca...@hotmail.com> wrote in message
news:26a801c2f004$de436790$a301...@phx.gbl...