Tag archives for javascript

Javascript: Debug Console
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»
Javascript: Confirm closing/unloading the page with the javascript event onbeforeunload
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»
Copyright ® 2012 Hüseyin Özveren. No reproduction, even partial, can be used from this site and all its contents including text, documents, images, etc.. without the express permission of the author.