# Simple javascript code that creates a webpage

**URL:** <https://forum.kirupa.com/t/simple-javascript-code-that-creates-a-webpage/45370>\
**Category:** Uncategorized\
**Created:** [March 13, 2004, 7:26pm UTC](https://forum.kirupa.com/t/simple-javascript-code-that-creates-a-webpage/45370 "2004-03-13T19:26:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlk](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mlk](https://forum.kirupa.com/u/mlk)\
**Post date:** [March 13, 2004, 7:26pm UTC](https://forum.kirupa.com/t/simple-javascript-code-that-creates-a-webpage/45370/1 "2004-03-13T19:26:29Z")

</div>

Id like to run a very stupid script that will simply create this type of file:

1. 

text  
text  
text

1. 

text  
text  
text

1. 

text  
text  
text

… etc

It’s not the simple loop which bugs me but rather how to set up the javascript so it will create this while the page loads… How can i do it ?

Thnax

mlk

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2004, 9:05pm UTC](https://forum.kirupa.com/t/simple-javascript-code-that-creates-a-webpage/45370/2 "2004-03-13T21:05:30Z")

</div>

loop a document.write line with text and variable based on the i++
