Is it possible to add a binding binding event in mousedown in jQuery?

I want to catch the insert event with a right click and paste into the text box. I have done this:

$(window).bind('paste', function(event) {                  
    pasteText();  
    return false;              
 });

and it works fine. Therefore, when the insert is pressed, a small pop-up window is displayed. I want this popup to appear on the mousedown event. I mean, when I click "Insert" (mousedown), then I want to see a popup. Is it possible?

Thanks in advance

+3
source share
1 answer

mousedown ( , .. )... .

+1

Source: https://habr.com/ru/post/1778920/


All Articles