I am unable to get document.execCommand('SaveAs', false, "/home/prakash/temp/log.html")
to work in either Firefox or Google Chrome, any ideas ? Am I doing something wrong ?
views:
32answers:
1
+2
A:
Update:
You may find this resource useful :)
Quoting:
Available only in the Win32 platforms for IE, the execCommand( ) method executes the named command.
Source: http://javascript.gakaa.com/document-execcommand-4-0-5-.aspx
More Specific Resource:
Sarfraz
2010-10-20 07:09:42
Oh damn ! Is there anyway, I can write to a file from javascript in firefox ?
Prakash Raman
2010-10-20 07:26:28
@Prakash Raman: See my updated answer please.
Sarfraz
2010-10-20 07:49:59
Great that should work fine for me :)Just have a java applet that can perform the same.
Prakash Raman
2010-10-20 07:55:01
Current versions of all the major browsers have implementations of `document.execCommand()`, so the page you linked to is out of date.
Tim Down
2010-10-20 09:00:53