title: Write javascript output to file on server
body: <p>So I have this HTML file that tests the user's screen resolution, and plugins installed using Javascript. So when the user accesses the page it sees: (e.g.) Your current screen resolution is 1024x768 and you have the following plugins installed: Plug-in No.2- Java Deployment Toolkit 7.0.10.8 [Location: npdeployJava1.dll], Plug-in No.3- Java(TM) Platform SE 7 U1 [Location: npjp2.dll], Plug-in No.4- Microsoft Office 2003 [Location: NPOFFICE.DLL]... I also need to save this information in a file on the server. All users are having firefox or chrome. How do I do this using AJAX?</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;script language="JavaScript1.2"&gt;
  document.write("Your current resolution is "+screen.width+"*"+screen.height+"")
  &lt;/script&gt;
  &lt;BR&gt;&lt;BR&gt;
  &lt;SCRIPT LANGUAGE="JavaScript"&gt;
  var num_of_plugins = navigator.plugins.length;
  for (var i=0; i &lt; num_of_plugins; i++) {
  var list_number=i+1;
  document.write("&lt;font color=red&gt;Plug-in No." + list_number + "- &lt;/font&gt;"+navigator.plugins[i].name+" &lt;br&gt;[Location: " + navigator.plugins[i].filename + "]&lt;p&gt;");
  }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Thanks</p>