My Articles
Javascript tips
Cross browser confirmation dialog box
October 29, 2011

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.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close