ask twice before closing the tabs in chrome code example Example: chrome tab closes automatically remove close(); in js