Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save As Dialog Box

Status
Not open for further replies.

nithink

Programmer
Nov 7, 2002
92
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top