< html > < head > < title > study 017 </ title > </ head > < body > < p > < script language ="JavaScript" type ="text/javascript" > ... names = new Array();i = 0;do ...{ next = prompt("输入下一个名称", ""); if (next > " ") names[i++] = next;}while (next > " ");document.write("<h2>一共输入了" + names.length + "个名称</h2>");document.write("<ol>");for (i in names)...{ document.write("<li>" + names[i] + "</li><br>");}document.write("</ol>"); </ script > </ p > </ body > </ html >