Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

refresh event in javascript

window.onbeforeunload = function() {
        return "Dude, are you sure you want to refresh? Think of the kittens!";
}
Source by teamtreehouse.com #
 
PREVIOUS NEXT
Tagged: #refresh #event #javascript
ADD COMMENT
Topic
Name
2+5 =