var names = new Array();
var i =0;
do{
var next = window.prompt("enter","");
if(next>" ")
names[i] = next;
i++;
}while(next>" ");
document.write("<h2>"+(names.length)+"names entered:");
document.write("<ol>");
for(i in names){
document.write("<li>"+names[i]+"<br />");
}
document.write("</ol>");
if_else_
相关分类