Confirmation before closing of tab/browser using JavaScript by SemicolonWorld

Try to close tab or browser, you'll see the script in action.