Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] window.document.execCommand('SaveAs') not works for me


  • From: Ying-Kit.Leung@xxxxxxxxxxxxx (Ying-Kit.Leung@xxxxxxxxxxxxx)
  • Subject: [Advanced-java] window.document.execCommand('SaveAs') not works for me
  • Date: Thu, 14 Mar 2002 12:24:10 -0500

I open the following html with IE 5.5. When I click the link, the
window.open works fine, but the execCommand not works. Any idea?

Thanks!



<html>
<head>
<script>
function saveDoc() {
   var win = window.open('some.html');
   win.window.document.execCommand('SaveAs',null,'new.htm')
}
</script>
</head>
<body>
  <a href="javascript:saveDoc();">Save It</a>
</body>
</html>