Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer JavaScript: onclick=hide the caller

    Hi!

    this:

    <input type="button" onmouseup="this.style.display='none';" value="clickMe" />

    causes IE to stop responding to (nearly) all mouse input. Including IE's own menu bar. Reloading the page stops the problem. Generating virtual clicks on other objects does not.

    Does anybody here understand why this happens and how I can prevent it from happening? I realise the form presented here has no use whatsoever but on my page it makes sense

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by MichaelCL View Post
    Hi!

    this:

    <input type="button" onmouseup="this.style.display='none';" value="clickMe" />

    causes IE to stop responding to (nearly) all mouse input. Including IE's own menu bar. Reloading the page stops the problem. Generating virtual clicks on other objects does not.

    Does anybody here understand why this happens and how I can prevent it from happening? I realise the form presented here has no use whatsoever but on my page it makes sense
    Seems to be just the mouseup event. It's O.K. using onclick or onmousedown. Do you need to use mouseup?

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts


    I never even thought of that...

    I guess onclick will just have to do
    Thanks! I started using onmouseup because someone suggested this would give you the ability to cancel clicks by holding the button down, moving the cursor off the button and then releasing again. But as far as I can see that functionality is already present... Leaves me wondering what mouseup is for then

    Thanks!

  • #4
    Senior Coder
    Join Date
    Nov 2006
    Posts
    1,000
    Thanks
    0
    Thanked 0 Times in 0 Posts
    mouseup is useful for drag and drop.

    david_kw


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •