javascript return function's data as a file
<p>I have a function in javascript called <code>"dumpData"</code> which I call from a button on an html page as <code>**onlick="dumpData(dbControl);"*</code>  What it does is return an xml file of the settings (to an alert box right now).   I want to return it to the user as a file download.  Is there a way to create a button when click will open a file download box and ask the user to save or open it? (sorta of like right-clicking and save target as)...</p>

<p>Or can it be sent to a php file and use <code>export();?</code>  Not sure how I would send a long string like that to php and have it simple send it back as a file download.</p>

<p>Dennis</p>
