chung-liang

<div style="position:absolute;width:500px;height:500px;overflowTongue Tiedcroll;" onclick="alert('click')">
This is a div.
</div>

I want the onclick function is not executed when I click the scrollbar in div. Only I click the content of div, the onclick function is executed.



Re: Internet Explorer Web Development how to let div's scrollbar not receive div's mouse event?

Ehsan Zaery Moghaddam

Dear chung-liang

I think using 'componentFromPoint' method would be useful in this situation.

Take a look at http://msdn2.microsoft.com/en-us/library/ms533053.aspx and select 'componentFromPoint'






Re: Internet Explorer Web Development how to let div's scrollbar not receive div's mouse event?

chung-liang chang

Thanks a lot. It is what I am looking for.