How to configure "SAVE AS" button?
Posted: Thu Jun 12, 2008 7:26 am
Hy All,
I'm trying to configure a "Save as" button to save page in html format but it doesn't work like i expected.
Actually I'm using the following code :
Code:
<td align="center" nowrap width="33%"><input type=button value="Save As" onclick="saveasbox('myfilename.htm');"></td>
<script>
function saveasbox (filename)
{
document.execCommand('SaveAs',null,filename)
}
</script>
Someone knows what i'm doing wrong
Thanks,
Preza
I'm trying to configure a "Save as" button to save page in html format but it doesn't work like i expected.
Actually I'm using the following code :
Code:
<td align="center" nowrap width="33%"><input type=button value="Save As" onclick="saveasbox('myfilename.htm');"></td>
<script>
function saveasbox (filename)
{
document.execCommand('SaveAs',null,filename)
}
</script>
Someone knows what i'm doing wrong
Thanks,
Preza