How to connect server in javascript like in php mysql_connect
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8833901/connect-host-in-javascript">Connect Host in javascript</a>  </p>
</blockquote>



<p>I need to connect my server using javascript like in php mysql_connect. Just asking for knowledge purpose. Yeah It will be the biggest mistake to connect from client side language but still want to connect using js.</p>

<p>Thanks.</p>
