HTML Builder | JavaScriptSource

HTML Builder

JavaScriptSource Staff Sep 9, 2000
The JavaScript Source: Misc.: HTML Builder "+form.Name.value+" \r\n"; txt+= "


\r\n"; txt+="
\r\n"; if(form.Text1.value) txt+=form.Text1.value+"\r\n"; if(form.Fav1URL.value||form.Fav2URL.value||form.Fav3URL.value||form.Fav4URL.value||form.Fav5URL.value||form.Fav6URL.value) { txt+="
Some of my favorite links:
"; } if(form.EMail.value){ txt+="
Questions? Comments? E-Mail me:\r\n"; txt+="
\r\n"; } txt+="
"; form.Text2.value=txt; } function AddText(form, Action){ var AddTxt=""; var txt=""; if(Action==1){ txt=prompt("Text for the level 1 header.","Text"); if(txt!=null) AddTxt="


\r\n"; } if(Action==2){ txt=prompt("Text for the level 2 header.","Text"); if(txt!=null) AddTxt="


\r\n"; } if(Action==3){ txt=prompt("Text for the level 3 header.","Text"); if(txt!=null) AddTxt="


\r\n"; } if(Action==4) { txt=prompt("Text to be made BOLD.","Text"); if(txt!=null) AddTxt=""+txt+""; } if(Action==5) { txt=prompt("Text to be italicized","Text"); if(txt!=null) AddTxt=""+txt+""; } if(Action==6) AddTxt="\r\n

"; if(Action==7) AddTxt="
\r\n"; if(Action==8) AddTxt="

\r\n"; if(Action==9) { txt=prompt("URL for the link.","http://"); if(txt!=null){ AddTxt="
"; txt=prompt("Text to be show for the link","Text"); AddTxt+=txt+"\r\n"; } } if(Action==10) { txt=prompt("URL for graphic","URL"); if(txt!=null) AddTxt="\r\n"; } form.Text1.value+=AddTxt; } function ResetPage(form) { if(confirm("Reset the page?")) { form.Text1.value=""; form.Text2.value=""; form.Name.value=""; form.EMail.value=""; form.Fav1URL.value=""; form.Fav1Title.value=""; form.Fav2URL.value=""; form.Fav2Title.value=""; form.Fav3URL.value=""; form.Fav3Title.value=""; form.Fav4URL.value=""; form.Fav4Title.value=""; form.Fav5URL.value=""; form.Fav5Title.value=""; form.Fav6URL.value=""; form.Fav6Title.value=""; } } // -->


Home } Miscellaneous } HTML Builder

Occassionally, a web page provider does not offer an HTML editor with the web site accounts they provide. If that's the case with you or if you just don't like the editor you have, you might give this JavaScript HTML Builder a whirl. It's very cool.


  1. Fill out the table with stuff you want to appear on your page.
  2. Click on Generate Source.
  3. Make adjustments if you want in the text area.
  4. Click on View to check out your page.
  5. If you want to save the source as a file you will have to cut and paste to a text editor.

Page Title:
Your E-Mail Address(*):
Your favorite sites:(*)
URL: Title:

(*=optional field)


The JavaScript Source: Misc.: HTML Builder

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s). The script is yours!


Did you use this script?  Do you like this site?  Please link to us!

Leave a Response