basic-javascript-appendix-4-ch04-q2.htm / htm
<HTML> <BODY> <SCRIPT> var inputName = ""; var namesArray = new Array(); while ( (inputName = prompt("Enter a name","")) != "" ) { namesArray[namesArray.length] = inputName; } namesArray.sort(); var namesList = namesArray.join("<BR>") document.write(namesList); </SCRIPT> </BODY> </HTML>
(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.