disable refresh page javascript code example
Example 1: prevent reload javascript
window.onbeforeunload = function() {
return "Dude, are you sure you want to leave? Think of the kittens!";
}
Example 2: javascrpt refresh page
location.reload();
Example 3: javascript refresh page automatically
<meta http-equiv="refresh" content="30"/>