We help IT Professionals succeed at work.

window.onscroll event not captured with firefox 1.07 butt works fine in IE

jinduy
jinduy asked
on
Medium Priority
678 Views
Last Modified: 2008-02-01
I'm twiddling around with javascript code and have the following:

<script language="javascript" type="text/javascript">
window.onscroll = doOnScroll;
function doOnScroll() {
   alert("Scroll");
}
</script>

This code works fine in ie, but doesn't work at all in firefox. Is there a simple and clean workaround for this? This solution must be cross browser compatible... at least for ie and firefox.

Here's a website I found with the example...

http://www.dynamicwebsitesystems.com/ScrollTest.htm

Thanks in advance
Comment
Watch Question

Commented:
works in my FF :s

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Also works correctly in mine.  Annoying, but functional.

Commented:
hehe

Author

Commented:
ok im confused why it doesnt work on my browser... what version FF are you using? thanks...

Commented:
1.5.01
1.5.0.1
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.