Questions tagged [onmousedown]

onmousedown is the event where a mouse button is first clicked (as opposed to when the button is subsequently released, which is onmouseup). This is not specific to any language, so please also include a language tag if applicable.

Most questions with this tag relate to the HTML DOM event, and you can find further information here: https://en.wikipedia.org/wiki/DOM_events#Events

This event is common across many platforms however so you may need to seek additional references.

208 questions
2
votes
1 answer

JavaScript gallery with mouse hold loop

So i got this gallery script and it works fine , but im trying to import onMousedown function ,so when i click and hold the 'next' or 'previous' links , images just keep changing in a loop ,until i release the link
coddr
  • 29
  • 1
  • 5
2
votes
1 answer

Html onmousedown vs href Precedence

I use the following code in one of my html pages. When user clicks "Search Engines" links it opens yahoo.com on a new page and Google on current page. I've tested this and it works (opens both urls), but is there any chance that the page will…
RuSh
  • 1,643
  • 7
  • 25
  • 39
2
votes
5 answers

Google search links in the webview of my app opening of a blank page ..!

The webview with google search result links loaded in my android app, when I clicked on the links, it is opening up a blank screen. I think, it is something to do with onmousedown event attached with every href links in the result page. will be…
Santhosh Gandhe
  • 6,900
  • 2
  • 23
  • 17
2
votes
1 answer

onmousedown change cursor; might need to control event bubbling

For one of my projects, I need to change a custom cursor onmousedown and change it back onmouseup and onmouseout. For the moment, I am only interested in making it work for Chrome and will see about different browsers later. So I started with the…
1
vote
1 answer

canvas.onmousedown function to add a shape won't work

I have some code, which can be seen below. At the bottom is a block of code to add a shape. For some reason it won't work unless the very first lines of code are different. Up until I added the 'addShape' code, it was all working fine, so I wandered…
Jon_091
  • 127
  • 2
  • 7
1
vote
1 answer

Assigning new arrows on Jscrollpane with onmousdown event - buggy in ie7/8

I am assigning new arrows to my jscrollpane with the below code. This works fine in all browswers, but its buggy in ie7/8. An example of the bug can be found on http://jsfiddle.net/WzNM4/6/ . If you click the down button, leave it running for 2secs…
Naztee
  • 23
  • 3
1
vote
1 answer

how to increase number with holding button

Hello i want to increase number by holding down the button and stop increase when mouse up but it does not work properly its increasing when i use mouse down event but it does not stop when i use mouse up event
Cihangir
  • 21
  • 2
1
vote
1 answer

react focus not firing on mousedown after change focus to another component

https://react-ts-m8xqqr.stackblitz.io https://stackblitz.com/edit/react-ts-m8xqqr?file=App.tsx sandbox to follow I have a table and button components When page is loaded initially mousedown on table results focusing on the cell - as expected Then…
bilet
  • 11
  • 2
1
vote
1 answer

Track mousedown coordinates within set region over Flash

My page has a full screen flash object with a centered fixed content area (the rest background). Without touching the flash source, I want to add "links" to set places within the content area to run script(s) (eg. ajax, event tracking) - similar to…
Peter Craig
  • 7,101
  • 19
  • 59
  • 74
1
vote
1 answer

How to do drag only without drop in Testcafe

So I have a scenario where I want to capture a popup element message whenever I drag one element to another element. public async dragTransitiontToSegment(item: number, transitionName: string) { const _tailSegment =…
1
vote
1 answer

send a mouse over event from one function to another function in javascript

I want to get the id of the font tag and then pass it to the changeText function so that i can display the words in hello