Programming/jquery2019. 6. 4. 14:00

 

$(document).bind("contextmenu", function(event) { 
    event.preventDefault();
    $("<div class='custom-menu'>Custom menu</div>")
        .appendTo("body")
        .css({top: event.pageY + "px", left: event.pageX + "px"});
}).bind("click", function(event) {
    $("div.custom-menu").hide();
});

[링크 : http://jsfiddle.net/andrewwhitaker/fELma/]

  [링크 : https://programmingsummaries.tistory.com/149]

'Programming > jquery' 카테고리의 다른 글

jquery ajax delete가 없다?  (0) 2022.09.16
jquery-cookie 라이브러리  (0) 2022.09.05
jquery ajax json flask  (0) 2019.01.07
jquery this 버튼 checked  (0) 2019.01.07
ajax / promise / jquery  (0) 2019.01.04
Posted by 구차니