|
-
Apr 18th, 2002, 06:46 PM
#1
Why wont this work?
Im trying to make a script that asks for words then prints them out. It first asks how many words then asks what each word is.
<script language="javascript">
var words=prompt("How many words?","");
for(loop=0;loop<words;loop++)
{
var loop1=loop+1;
var wordx=prompt("What's word " + loop1);
var all="<h1>In Reverse</h1><br>word :" + loop1 +"<br>" + wordx;
}
var new=open("test4.html","new","width=400, height=400");
new.document.writeln(all);
</script>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|