Questions tagged [onmouseup]

Event that can be handled. Occurs if a mouse button is released

80 questions
0
votes
3 answers

jQuery Mouseenter and mouseleave actions

I am using the following jQuery script: $("#divid").mouseenter(function() { $('#divid').show(1000); }).mouseleave(function() { $('#divid').hide(1000); }); $("#hldiv").mouseenter(function() { …
aeciftci
  • 679
  • 2
  • 6
  • 15
0
votes
1 answer

JavaScript iframe onmouseup triggered by highlighting

I am playing around with events and I am trying to make an event that is triggered when text in my iframe is highlighted. I thought I might try to use the onmouseup event:
Kvass
  • 8,294
  • 12
  • 65
  • 108
0
votes
1 answer

Joint v3.1.1 paper does not responds 'onmouseup'?

I build a paper and graph with jointjs v3.1.1, but as you can see the onmouseup does not work, it is so wired . it works well when I change back to jointjs v1.0.3. I made codes below to test. when using jointjs v1.0.3. the codes alert 'hello' after…
0
votes
0 answers

Why isn't javascript registering this onmouseup event?

I am trying to create a "drawing" thing in javascript with dots, and it doesn't seem to be registering the onmouseup event. What is wrong with this code? let interval = null; const mouseDown = 0; document.body.onmousedown = function () { D =…
0
votes
0 answers

Javascript registers onmousedown event only when onmouseup happens? (They behave as the same event..)

I am testing a short script that is supposed to register whether the mouse button is held down, however on all the browsers that I tested it both onmouseup and onmousedown events fire simultaneously - when mouse button is unpressed. This is one…
user10433783
  • 103
  • 7
0
votes
2 answers

Is touchend the phone equivalent of onmouseup in js?

I have my web app working fine with computers, but can't seem to get it to work on mobile phones mainly because the onmouseup isn't being fired off. So I added the touchend event thinking it would be the same, but it didn't help. How do I get the…
Joshua Segal
  • 541
  • 1
  • 7
  • 19
0
votes
3 answers

Unable to trigger onmouseup event on an element through JavaScript console on Chrome

Unable to trigger onmouseup event on an "tr" element through Javacript console on Chrome. The element is like this (can't share the exact code sorry): < tr class="one" style="height:20px;" onmouseup="click(event,this)"> Text In the console, I…
Gaurav Kumar
  • 221
  • 3
  • 14
0
votes
1 answer

javascript - select text in table cell and autofill the input on the same row

Right now I'm using document.onmouseup event to select the text. But I'm only able to specify one input in my code. How do I select the text in the first row and put it in the input in the first row, and do the same thing for the second row? The…
Yang
  • 6,682
  • 20
  • 64
  • 96
0
votes
2 answers

Changing an image while click is held

I am looking to change an image of a button from when a click is held, then change back upon click release. I currently have a flat image, and I want it to change to one with an inner-shadow to make it look like a button press, but change back to…
Nathan Wilson
  • 169
  • 4
  • 18
0
votes
1 answer

Ending an onmousedown event (onmouseup?)

I've created a button using an onmousedown event which loops an audio track when clicked. I'm trying to end the audio loop when the same button is clicked. I have tried an onmouseup event but no luck, any ideas? (I'm new to JavaScript)