scrollTop in an <IFRAME> not working

A

Axel Schick

Hello everybody!

I encountered a strange behavior when trying to read the scrollTop
propery of the <body> element from inside an iFrame:

<body onmousemove = "window.status = document.body.scrollTop;">

allways reports "0" , even if i scroll down in the iframe.

Is this a known bug?

Thanx, Axel
 
M

Martin Honnen

Axel Schick wrote:

I encountered a strange behavior when trying to read the scrollTop
propery of the <body> element from inside an iFrame:

<body onmousemove = "window.status = document.body.scrollTop;">

allways reports "0" , even if i scroll down in the iframe.

Is this a known bug?

Whether body.scrollTop says anything about the scroll position depends
on the browser and with IE 6/Win even on the rendering mode so at least
tell us what browser you are trying with and give a URL perhaps.
 
S

seven

Martin Honnen said:
Axel Schick wrote:


Whether body.scrollTop says anything about the scroll position depends
on the browser and with IE 6/Win even on the rendering mode so at least
tell us what browser you are trying with and give a URL perhaps.


Yes, that's true,sorry. We use IE6 for our ERP-System. I've set up a
Testpage in which i stripped the code to the bone, so i could
reproduce the behavior and guess what? It works... so i searched a bit
more and found that the page, where i want to implement the feature,
uses a HTC behaviour which alternates the properties of the body tag..
Sorry I could not give you an URL, because the Page runs in our
Intranet, but if i figure anything out, that causes the problem i will
post it...

Cheers, Axel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top