DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
tabe close alert in js
window
.
addEventListener
(
'beforeunload'
,
function
(
e
)
{
e
.
preventDefault
(
)
;
e
.
returnValue
=
''
;
}
)
;
PREVIOUS
NEXT
Tagged:
#tabe
#close
#alert
#js
ADD COMMENT
Topic
COMMENT
Name
3+2 =
Submit