Tag archives for javascript

Many developers still use alert boxes to check their JavaScript code. And yet there is a Javascript console in most browsers: Google Chrome, Firefox (with Firebug), Internet Explorer, Opera (with the Developer Console tool) and Safari.
For example in IE8, you can access IE8 script console by launching the "Developer Tools" (F12). Click the "Script" tab, then click "Console" on the ...more»

In some scenarios, it is good to ask the user for confirmation if he really wants change pages and therefore lose all data entered in a form. This can be handy when the form is time consuming. For this, there is a DOM event beforeunload which occurs just before unloading the page.
The return value is the text that is displayed ...more»