DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript onclick event listener
document
.
getElementById
(
"myBtn"
)
.
addEventListener
(
"click"
,
function
(
)
{
alert
(
"Hello World!"
)
;
}
)
;
PREVIOUS
NEXT
Tagged:
#javascript
#onclick
#event
#listener
ADD COMMENT
Topic
COMMENT
Name
3+1 =
Submit