create a file using javascript in chrome on client side
问题 I would like to know if I can create a text file and save the file in the users \"Downloads\" section in his/her computer using javascript. The way my feature should work is when the user clicks the submit button, I populate the users info in the text file and then save it in his machine. I would like this to work in google chrome. Is this possible? I have seen posts that specifically tell me that it is a serious security issue. 回答1: Sure you can, using the brand new APIs: http://jsfiddle.net