how to export data to csv from html table
<p>Hi can any one tell me how to write the code to export csv file from html page.</p>

<p>I am trying to use the code as follows</p>

<pre><code>var doc =document.open("text/csv",replace);
</code></pre>

<p>the doc element i am sending to a function where I am getting all my table data.
 and i am writing data into doc "document.write(data);</p>

<p>but i am not able to get the data into csv file by asking some pop-up like open or save,
just it is printing the data into my current page.</p>

<p>can any one help me how to achieve it?</p>

<p>Regards,
kamesh</p>
