![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
If I comment out "document.getElemenById("demo").onmousedown = mousedown;", it works. Why would that make a difference? |
|
If I comment out "document.getElemenById("demo").onmousedown = ______________________________________^___________ ___ |
#2
| |||
| |||
|
|
yawnmoth wrote: If I comment out "document.getElemenById("demo").onmousedown = mousedown;", it works. *Why would that make a difference? Look very closely at it. If you need a clue: *> If I comment out "document.getElemenById("demo").onmousedown = ______________________________________^___________ ___ t |
#3
| |||
| |||
|
|
I made the change and it's still not working as expected. *I add the 't' and get the same behavior as before. *The only difference is that an entry isn't added to the Error Log. *And now, if I comment out document.getElementById("demo"), it doesn't make a difference. Clicking outside of the box still doesn't do anything. Any ideas as to why? Thanks! |
#4
| |||
| |||
|
|
On Aug 26, 11:57*pm,yawnmoth<terra1... (AT) yahoo (DOT) com> wrote: I made the change and it's still not working as expected. *I add the 't' and get the same behavior as before. *The only difference is that an entry isn't added to the Error Log. *And now, if I comment out document.getElementById("demo"), it doesn't make a difference. Clicking outside of the box still doesn't do anything. Any ideas as to why? Thanks! The body's height happens to be much less than the size on the window for that .html so that clicking under/below the box isn't cliking into the body. Click at the right side next to the box... and it works. |
#5
| |||
| |||
|
|
Am using document.onmouseup, instead, now. |
#6
| |||
| |||
|
|
yawnmothwrote: Am using document.onmouseup, instead, now. You should use that only as a fallback for the standards compliant * document.documentElement.addEventListener("mouseup ", ...); |
![]() |
| Thread Tools | |
| Display Modes | |
| |