By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,657 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

onmouseup event cannot be handled in IE7

P: 4
I am new to Javascript and HTML. I wrote some codes in html and Javascript to display a scrollbar using a <div> tag as follows.

[HTML]<div id="id1" onmouseup="callMe()" style="width:250px;height:30px;overflow:scroll">
<strong>hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh </strong>
</div> [/HTML]

but the problem is callMe() function is not called in IE7 but it is called in Mozilla-Firefox i am confused on this.... why is it happening like that ? can someone just explain? Why does the IE7 cannot handle onmouseup event?
Apr 10 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 392
Since your question relates to the callMe() function it would be a good idea to post the code for that function. Have you isolated the problem as the event not triggering? If not I would make the change shown below to test it. If you see the alert box the problem is the function not the event.

[HTML]<div id="id1" onmouseup="alert('On MouseUp event triggerd!');" style="width:250px;height:30px;overflow:scroll">
<strong>hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh </strong>
</div> [/HTML]
Apr 10 '08 #2

P: 4
Nop ... I tried it .. it's not the function but the event. But I found something interesting that if I clicked on the "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh" value then onmouseup gets fired and the function is invoked. But if I do the same thing for the scrollbar appeared in the page and it does not work where it is possible in Firefox
Apr 11 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.