title: Processing form with no server-side script (javascript) + adding CSS inside of Script
body: <p>I have been working on a very large form project for the past few days. I finally managed to get tables to work properly within a javascript file that opens a new display window. Now the issue at hand is that I can't seem to get CSS code to work within the javascript that I have created.</p>
  
  <p>Before everyone starts thinking "just use server side script idiot" I have a few conditions and info about the file:</p>
  
  <p><LI>The file is only being ran local due to confidential information risks. Once again no option for server access. The intranet the computers are on are already top security and this wouldn't exactly be a company wide program</li>
  <LI>The code below is obviously just a demo with a simple form...</LI>
  <LI>The real file has six pages of highly confidential information</LI>
  <LI>Only certain fields on this form will actually be gathered (example: address doesnt appear in the results)</LI>
  <LI>The display page will contain data compiled into tables for easier viewing</LI>
  <LI>I need to be able to create css commands to easily detect certain information if it applies and along with matching design of the original form</LI></p>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Form Example&lt;/title&gt;
  &lt;script LANGUAGE="JavaScript" type="text/javascript"&gt;
  function display() {
  DispWin = window.open('','NewWin', 'toolbar=no,status=no,width=800,height=600')
  
  message = "&lt;body&gt;";
  message += "&lt;table border=1 width=100%&gt;";
  message += "&lt;tr&gt;";
  message += "&lt;th colspan=2 align=center&gt;&lt;font face=stencil color=black&gt;&lt;h1&gt;Results&lt;/h1&gt;&lt;h4&gt;one&lt;/h4&gt;&lt;/font&gt;";
  message += "&lt;/th&gt;";
  message += "&lt;/tr&gt;";
  
  message += "&lt;td width=50% align=left&gt;";
  message += "&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;font face=calibri color=red&gt;NAME:&lt;/font&gt;&lt;/b&gt; " +         document.form1.yourname.value + "&lt;/UL&gt;"  
  message += "&lt;/td&gt;"; 
  
  message += "&lt;td width=50% align=left&gt;";  
  
  message += "&lt;li&gt;&lt;b&gt;PHONE: &lt;/b&gt;" + document.form1.phone.value + "&lt;/ul&gt;";
  message += "&lt;/td&gt;";
  message += "&lt;/table&gt;";
  message += "&lt;body&gt;";
  
  DispWin.document.write(message);
  DispWin.document.body.style.cssText = 'color:#blue;'; 
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;Form Example&lt;/h1&gt;
  Enter the following information:
  &lt;form name="form1"&gt;
  &lt;p&gt;&lt;b&gt;Name:&lt;/b&gt; &lt;input TYPE="TEXT" SIZE="20" NAME="yourname"&gt;
  &lt;/p&gt;
  &lt;p&gt;&lt;b&gt;Address:&lt;/b&gt; &lt;input TYPE="TEXT" SIZE="30" NAME="address"&gt;
  &lt;/p&gt;
  &lt;p&gt;&lt;b&gt;Phone: &lt;/b&gt; &lt;input TYPE="TEXT" SIZE="15" NAME="phone"&gt;
  &lt;/p&gt;
  &lt;p&gt;&lt;input TYPE="BUTTON" VALUE="Display" onClick="display();"&gt;&lt;/p&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &gt;
  </code></pre>