Click to See Complete Forum and Search --> : How do you write <BR> over 200 times in javascript?
Hawk
Jul 10th, 2002, 05:50 PM
How do you write <BR> over 200 times in javascript?
Something like strings("Test", 200) in vb.
Thanks
RealisticGraphics
Jul 10th, 2002, 06:12 PM
Here's one way.
<script language="JavaScript">
var BrStr =""
for(i=1;i<=200;i++){
BrStr = BrStr + "<br>"
}
document.write("Hello");
document.write(BrStr);
document.write("World");
</script>
Hawk
Jul 10th, 2002, 06:19 PM
Thanks for the prompt replied RealisticGraphics.
Have a good one!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.