Hi, I'm displaying content in the browser using JSP. I want to save the content by clicking a button. For this purpose I've this following Javascript command which I invoke onClick of the button which works well in IE but doesnt work in Netscape. Can anyone pls let me know how to achieve it in Netscape if you have any other way of doing this. I know this following command doesnt work in Netscape.
if (document.execCommand)
{
if (isReady)
{
document.execCommand("SaveAs"
;
}
}
the above code opens a Save As dialog box.
Thanks
if (document.execCommand)
{
if (isReady)
{
document.execCommand("SaveAs"
}
}
the above code opens a Save As dialog box.
Thanks