HTML Tester Script...

jaint

Member
Messages
174
Reaction score
0
Points
16
<script language="JavaScript">
function preview() {
temp = document.editor.area.value;
preWindow = open("",
"preWindow","status=no, toolbar=no, menubar=yes");
preWindow.document.open();
preWindow.document.write(temp);
preWindow.document.close();
};
</script>
<center>
<form name="editor">
<textarea bgcolor="#262626" text="#e7c34a" cols=150
rows=14 wrap=physical cursor="#ffa500"
name="area"></textarea>
<br>
<input type=reset value="Clear Text" text="#000080">
<input type=button value="Show Me"
onClick="preview()" text="#000080">
</form>

try that :)
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Thanks man!!!
I wanted to know if there's a way in which you can:
1) Make it a little smaller, you have to scroll to the right to see it complete
2) Add another table in which the result will appear, in the same page, and not opening a new page.

Thanks jaint, really :)
 

jaint

Member
Messages
174
Reaction score
0
Points
16
yea I'm sure I could do something with an iframe probably, but still trying to tackle that.
 
Top