Event that can be handled. Occurs if a mouse button is released
Questions tagged [onmouseup]
80 questions
41
votes
2 answers
How to implement an onmousedown and onmouseup on an iPhone touch screen
I've very new to HTML/JavaScript but am learning…
I want to make a button on an iPhone that runs a JavaScript command when it is pressed and another when it is released. I tried to do this using onmousedown and onmouseup properties, but this does…

user3175352
- 411
- 1
- 4
- 3
11
votes
2 answers
How to check display (none/block) of a div in jquery?
I am using this,
$("#loginanchor1").click(function (e) {
e.preventDefault();
$("#signin_menu1").slideDown("slow");
});
$(document).mouseup(function (e) {
if ($(e.target).parent("a.loginanchor1").length == 0) {
…

Mubeen
- 2,426
- 9
- 30
- 30
10
votes
4 answers
How to capture mouseup event outside of mousedown element? (i.e. for proper Drag-n-Drop?)
The Javascript onmouseup event is not triggered if the mouse button is released outside the element on which onmousedown has been triggered.
This causes a drag&drop bug in JQuery UI: A JQuery draggable element does not stop dragging when mouse…

Domi
- 22,151
- 15
- 92
- 122
6
votes
1 answer
Cannot catch all clicks when using onmousedown, onmouseup and click events
I'm trying to create a custom button out of a TPanel component. For this, I have provided an override for the onmousedown and onmouseup events (to do some drawing), and I've used the onclick event to handle the clicks.
Unfortunately, if I rapidly…

Joe
- 65
- 3
4
votes
3 answers
Losing MouseUp event if releasing not over the same element
I have got a problem with a slider. When i grab the handler, i change the .src of the image, just to change its color. However, i want it to change back to the original color when i release the mouse button. I have tried two things.
1) Changing it…

Alberto Mnemon
- 117
- 4
- 14
3
votes
1 answer
onmousedown and onmouseup not working when activated by touchscreen
I have two buttons that are supposed to act as touchscreen controls for a game on my webpage, each button moves the paddle in one direction while it is being held down, and they both do exactly as they are supposed to, but only when they are being…

LlamaButt
- 431
- 4
- 15
3
votes
0 answers
mousedown event happens at same time as mouseup event - Javascript/HTML
I'm trying to make a html button send certain string to my localhost socket server.(or even console.logging) and then another when i release it. the sending itself seems to be going fine but the mousedown event only happens when i release the…

user3611998
- 31
- 3
3
votes
2 answers
simulate to change the background color when click the link
I have the following HTML and the java script below to simulate the background color change when the link block is clicked, but it doesn't seem to work. Any reason why?
If I have only the onmousedown event handled, the background color will be…

tom
- 14,273
- 19
- 65
- 124
2
votes
1 answer
adding mouseup event for range in react
I'm trying to make an onmouseup like event on my slider (input html tag with type=range) in my react render function. I would love to do

Joshua Segal
- 541
- 1
- 7
- 19
2
votes
3 answers
Make Object Follow Mouse On MouseDown and "Stick" On MouseUp
I'm working with a project that is WPF and VB.net. I want to visually simulate "dragging" an object (though I do not want to use standard drag and drop for reason of purpose).
Basically, I have a label object that, on its MouseDown event, I want it…

CodeMouse92
- 6,840
- 14
- 73
- 130
2
votes
4 answers
How to hide iframe with FB Like button on click?
I'm using this code (standard FB Like):
2
votes
2 answers
Do OnMouseDown and OnMouseUp only work as a pair?
My application has a lot of TRectangle's acting as keys of a keyboard. When one is clicked you hear a sound. This is done by handling the OnMouseDown and OnMouseUp event. OnMouseDown: send a sound and OnMouseUp: switch it off. All works fine, except…

Arnold
- 4,578
- 6
- 52
- 91
1
vote
1 answer
why one html element's onmouseup event is not firing during drag and drop?
it looks to me that all tutorial about html drag and drop set the onmousedown and onmouseup events to the document rather than the element itself, and as i tested with below codes,
when clicking the element, both the onmousedown and onmouseup event…

hetaoblog
- 1,990
- 5
- 26
- 34
1
vote
1 answer
Dragging text prevents mouseup from trigging - javascript - chrome
I'm experiencing an issue with chromes click behavior. There are cases (havnt been able to isolate the exact conditions, maybe dragging, dblclick, too quick... no idea) chrome will stop triggering the onmouseup event and the tabs wont slide…

user1137619
- 77
- 2
- 7
1
vote
2 answers
Using javascript to click an embedded youtube video
I'd like to click on an embedded youtube video using javascript (so the video plays automatically). I successfully simulated a click on a
like this:
function f(){
alert("hello");
}
my…

SundayMonday
- 19,147
- 29
- 100
- 154