HTML Preview | JavaScriptSource

HTML Preview

Georg Jelly Nov 8, 2000

General

Preview HTML code in a new window by entering it into the form. This script allows you to pass anything to a new window.



Notes

Source Code

Paste this source code into the designated areas.

Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(5 comments)

Thanks

Tolga Aug 19, 2012

Thanks. It's actually there, it just wasn't displaying properly.

Lee Oct 31, 2008

In order to better help you, you'll need to post your question [a href="http://www.webdeveloper.com/forum/forumdisplay.php?f=3"]over on the forums[/a].

Lee Jun 26, 2008

I can get it to work. When i get it to work its awesome its easy, its pretty darn quick. But other times? It doesnt work for me. I dont know maybe my coding is messed up or something but its def HTML codes and its def NOT working!

Kristi Apr 22, 2008

This is the actual code for the BODY:[br /]<form>[br /] <textarea name="htmlArea" cols=45 rows=6></textarea>[br /] <br>[br /] <input type="button" value=" view " onclick="displayHTML(this.form)">[br /]</form>[br /][br /]You only have:[br /]<form>[br /] <textarea name="htmlArea" cols=45 rows=6>

cj Feb 13, 2008