简体   繁体   中英

execCommand not working

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 ?

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:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM