#javascript-code-06-displayerror.js / js
function displayError( msg ) { // Check and make sure that msg is not undefined if ( typeof msg == 'undefined' ) { // If it is, set a default message msg = "An error occurred."; } // Display the message alert( msg ); }
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.