javascript confirm tab close
<script>
window.onbeforeunload = function (e) {
e = e || window.event;
// For IE and Firefox prior to version 4
if (e) {
e.returnValue = 'Sure?';
}
// For Safari
return 'Sure?';
};
</script>
Also in JavaScript:
- print hello world in javascript
- ip my adress
- javascript find directory root
- How can I check whether a variable is defined in Node Js
- how to find dates in a string in js
- what is ... in javascript
- for in loop javascript
- how to remove property of object in javascript without delete
- font awesome react
- Javascript get element height and width
- javascript colab connect
- mysql get json value by key
- jquery: get selected option of the drop down list
- javascript go to page
- javascript indexOf object value in array
- remove selected bar mui tabs
- module not found: can't resolve 'react' in 'c:\users\pavlos\desktop\reactjs\hwr\reactproject2\src'
- how to validate input type=date in javascript
- vim go back word
- how to make a deck of cards in javascript
- javascript delete first character in string
- jquery select option by text
- how to calculate balance automatically using javascript and php using cash paid
- visual studio appsettings development json not nested appsettings.json