how to open the save as dialogue box with javascript
<p>how can I programm a button so that when clicked should open the save as dialogue  box?</p>

<p>Put simply, how can I save a file on the local machine using javascript or php? I really don't know how to go about it.</p>

<p>Thanks in Advance.</p>

<h3>EDIT:</h3>

<p>Thanks for the quick response. I have a table that I have displayed on a web page, and a button, so that when that button is clicked, the user can specify the file path, and save that table as a <code>.txt</code> file to the specified destination.</p>
