Thread: Html test bed
View Single Post
Old 05-21-2008, 01:27 PM   #9 (permalink)
slappyking
 
slappyking's Avatar
 
Title: Member
Join Date: Sep 2007
Location: @ my P.C
Posts: 383
Blog Entries: 5
Rep Power: 2 slappyking is on a distinguished road
Re: Html test bed

I got it to work, well with a little help, lol. I had to put it on a seperate html page and insert this code....

Code:
<!-- Begin HTML Test Bed --> 
<script language=javascript> function wtvtest() { temp = document.testbed.stn.value; preWindow = open("", "preWindow","status=no, toolbar=no, menubar=no, scrollbars=yes"); preWindow.document.open(); preWindow.document.write(temp); preWindow.document.close(); }; </script> 


<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> 
 <tr> 
  <td class="catHead" height="25" align="center"><span class="genmed"><b>HTML Test Bed</b></span></td> 
 </tr> 
 <tr> 
  <td class="row1" align="center"> 

<center><form name=testbed> 

<table bgColor=#666666 border=2> 
 <tbody> 
 <tr> 
  <td align=middle> 
<textarea name=stn rows=10 cols=60 autoactivate nohighlight cursor="green" text="white" bgcolor="black" class="post"></textarea> 
  </td> 
 </tr> 
 </tbody> 
</table> 
  
<center> 
<table> 
 <tbody> 
 <tr> 
   <td align=left width=75> 
<input onclick=wtvtest() type=button value=&nbsp;&nbsp;Preview&nbsp;&nbsp; text="black" class="post" borderimage="file://rom/borders/buttonborder4.bif "> 
   </td> 
   <td align=left width=75> 
<input type=reset value="Clear Document" text="black" class="post" borderimage="file://rom/borders/buttonborder4.bif "> 
   </td> 
 </tr> 
 </tbody> 
</table> 
</center> 

</form></center> 

  </td> 
 </tr> 
</table><br /> 
<!-- End HTML Test Bed -->
And here's the proof it works...

:: Portal
__________________
slappyking is offline   Reply With Quote