PDA

View Full Version : file extension stopping javaScript from working.


redmeat
10-24-2002, 03:59 PM
document.body.scrollTop doesn't work if the file extension is .asp, it just reads 0. I used the same document with .html and it was fine (it tells me how much the document has been scrolled by).

Thank you.

Jack.

brothercake
10-24-2002, 04:36 PM
try document.documentElement.scrollTop - that's the "compliant mode" equivalent