Create HTML file with JavaScript

后端 未结 3 947
被撕碎了的回忆
被撕碎了的回忆 2021-01-18 08:44

I\'m looking for a way to use a JavaScript function to create a new HTML file in the local directory. Is this possible?

Thanks

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-18 09:04

    Just for web sanity and security. Making JS do things like that is obtrusive. You might write a text file someone else might write virus.py on the client side.

提交回复
热议问题