Opened 14 years ago
Closed 12 years ago
#4584 closed enhancement (invalid)
Append "contextmenu" event feature
Reported by: | harobed | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | event | Version: | 1.3.2 |
Keywords: | contextmenu | Cc: | |
Blocked by: | Blocking: |
Description
Example of use :
<html> <head> <script type="text/javascript" src="jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function() { /* // Example without jquery document.getElementById("contextmenu").oncontextmenu = function(e) { console.log("contextmenu"); return false; } */ // Example with jquery $("#contextmenu").contextmenu(function(e) { console.log("contextmenu"); return false; }); }); </script> </head> <body> <p id="contextmenu">contextmenu</p> </body> </html>
Regards, Stephane
Attachments (1)
Change History (2)
Changed 14 years ago by
Attachment: | jquery.contextmenu.patch added |
---|
comment:1 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Just use .bind("contextmenu", ...).
Note: See
TracTickets for help on using
tickets.
contextmenu patch