When you need a confirmation dialog box, most of you use window.confirm(‘something’). This is not really cross-browser, since Chrome displays a simple alert. To avoid this use confirm(‘something’), and magically everything will start working as expected.