faqts : Computers : Programming : Languages : JavaScript : Document

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 109 people (18%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

Why I got 'Access is Denied' error when using setTimeout('win.document.execCommand("saveAs")',500)?

Apr 4th, 2002 00:30
Joe Lipman, Jean-Bernard Valentaten, w white,


If you haven't defined an object called win, then your code is not going
to work, since win.document doesn't exist ("Access denied") :)
HTH,
Jean
-----------------------------------------------------------------
I've also found that although this works in client-side, the execCommand
("Save As") does not work on a page on the Internet ( ie. with location 
beginning as http:// instead of c:\ )
Joe