title: trying to get a timestamp inputed upon a click of the button
body: <p>this is the coding that i am working on and cannot figure out how to have a button just input a basic non-counting timestamp from the current time. Can anyone help me fix my problem please. all i am trying to do is have a time stamp be placed in a box next to the get time button...</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script language="JavaScript" type="text/javascript"&gt;
  
  
  
  function getTimeStamp() {
         var now = new Date();
         return ((now.getMonth() + 1) + '/' + (now.getDate()) + '/' + now.getFullYear() + " " + now.getHours() + ':'
                       + ((now.getMinutes() &lt; 10) ? ("0" + now.getMinutes()) : (now.getMinutes())) + ':' + ((now.getSeconds() &lt; 10) ? ("0" + now
                       .getSeconds()) : (now.getSeconds())));
  }
  
  
  window.onclick = "getTimeStamp" ;
  
  
  &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;td&gt;
  &lt;button type="button" onclick="form"&gt;&lt;form name="getTimeStamp"&gt;
  
   &lt;input type=text" name="field" value="" size="11"&gt;
  &lt;/form&gt;Get Time&lt;/button&gt;&lt;/td&gt;
  
  
  
  
  &lt;td&gt;Test&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>