Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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>
Comment

PREVIOUS NEXT
Code Example
Javascript :: get ip of user in node js 
Javascript :: express send 401 response 
Javascript :: java password regex 
Javascript :: array int to string javascript 
Javascript :: cheerio load from file 
Javascript :: express async errors 
Javascript :: how to find the last object in an array 
Javascript :: javascript string unique characters 
Javascript :: how to pretty formatjson value on terminal ruby 
Javascript :: express cors error 
Javascript :: js get current function name 
Javascript :: javascript Find the number of days between two days 
Javascript :: react query dev tools 
Javascript :: getvalue data from datetimepicker 
Javascript :: jquery bind click 
Javascript :: redux devtools extension npm 
Javascript :: javascript url decode online 
Javascript :: javascript go to div id 
Javascript :: bootstrap in react 
Javascript :: destructuring dynamic properties 
Javascript :: javascript remove character from string 
Javascript :: react how to create range 
Javascript :: jquery change text 
Javascript :: electron main.js template 
Javascript :: pauze js 
Javascript :: should i use google pay 
Javascript :: how to make nextjs image component responsive 
Javascript :: get last item in array 
Javascript :: ng class in angular 
Javascript :: dropzone on success all files 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =