title: Script run on server or client?
body: <p>I have a thttpd server set-up which has the following html file. When I give address server-address/file-name.html on a standard web browser errors on the script is logged in error console of browser. I am confused about where the script is run actually? Is it on the client side or are the error messages just passed on to browser by server?</p>
  
  <p>My requirement is to run script on a server to generate dynamic web pages upon client interaction. </p>
  
  <pre><code>&lt;html&gt; 
  &lt;head&gt; 
  &lt;title&gt;Entitled Document&lt;/title&gt; 
  &lt;script language="JavaScript" &gt; 
  Function Java_Scriptfn()
  {
      alert('Test'
  }
  &lt;/script&gt; 
  &lt;/head&gt; 
  &lt;body&gt; 
  &lt;input type="button" value="Script_Check" onclick="Java_Scriptfn()"&gt; 
  &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>