DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to add a right click listener javascript
element
.
addEventListener
(
'contextmenu'
,
(
e
)
=>
{
e
.
preventDefault
(
)
;
alert
(
'Success'
)
;
}
,
false
)
;
PREVIOUS
NEXT
Tagged:
#add
#click
#listener
#javascript
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit