JavaScript Source Code 3000: Forms: HTML Preview
HTML Preview
Preview HTML in a new window by entering it into the form. This script allows you to pass anything to a new window. Neat!
JavaScript Source Code 3000: Forms: HTML Preview
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 Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!
<!-- TWO STEPS TO INSTALL HTML PREVIEW:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: nsabs@1nsyncfan.com -->
<!-- Web Site: http://www.envy.nu/gjelly -->
<! >
<! >
<!-- Begin
function displayHTML(form) {
var inf = form.htmlArea.value;
win = window.open(", ", 'popup', 'toolbar = no, status = no');
win.document.write("" + inf + "");
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<form>
<textarea name="htmlArea" cols=45 rows=6>
</textarea>
<br>
<input type="button" value=" view " onclick="displayHTML(this.form)">
</form>
<!-- Script Size: 1.07 KB -->
Wyszukiwarka
Podobne podstrony:
!0002 HTML PreviewhtmlREADME HTML (2)!0002 HTML ThemeshtmlKody w Html`uDoesYourMotherKnow HTMLhtml, css szablonHTML Help SheetCarroll Brown Terra Incognita (html)więcej podobnych podstron