--- books/www/chapters/ch05.html 2003/03/19 15:10:11 1.21 +++ books/www/chapters/ch05.html 2003/03/21 11:37:34 1.22 @@ -562,9 +562,9 @@ dump(count + " items checked \n"); var chex = document.getElementsByAttribute("disabled", "true"); var unchex = document.getElementsByAttribute("disabled", "false"); for (var i=0; i<chex.length; i++) - chex[i].setAttributte("disabled", "false"); + chex[i].setAttribute("disabled", "false"); for (var i=0; i<unchex.length; i++) - unchex[i].setAttributte("disabled", "true"); + unchex[i].setAttribute("disabled", "true"); }

Although this example doesn't update elements whose @@ -1269,8 +1269,11 @@ retval=OK; locally, since it wouldn't have the required XPConnect access as a remote file because of security boundaries) loaded in Mozilla instantiates a Mozilla sound component and plays a - sound with it. Go ahead and try it. Example 5-11 Scripting components from HTML

+ sound with it. Go ahead and try it. +

+ +

+ Example 5-11 Scripting components from HTML

<html> <head>