View Full Version : Stop Scrolling behavior to the onmousewheel event

01-31-2005, 10:26 AM
hi all,

I am building a website using jsp.
I create a form which contains 3 tables. Everything work fine except the only problem is that when i use the mouse wheel over the table area, the table scroll/move with the mousewheel instead of the web page.

Is there a way to overcome this problem such that when I use the mousewheel over the table the web page scroll/move ONLY instead of the table in the form or unless I click on the table area or move the vertical scrollBar then it makes sense for the table to scroll/move with the mousewheel.

I tried <Form onMouseWheel="return false"> but it doesn't work.

Thank you very much for your help.


01-31-2005, 03:09 PM
hey u wanna post a link and let us see exactly wot u mean. Have you set your css overflow properties correctly?

01-31-2005, 03:44 PM
for IE only:

<table onmousewheel="return false">

02-01-2005, 04:00 AM

Could you please look under the heading "Mouse Over Gives Popup" in the Threads in Forum: Javascript Programming where rgn1703 post a table and when we use the mouseWheel within the table, the table scroll/move. Is there a way such that when I have not click on the table and use the mouse wheel ONLY the web page move and ONLY when I click on the table then it should scroll/move. Thanks for any ideas or hint.
once again, thanks.


02-01-2005, 05:37 AM
That's a behaviour of the browser.