Create HTML file with JavaScript

后端 未结 3 971
被撕碎了的回忆
被撕碎了的回忆 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 08:56

    (Client Side) Yes, but you might need to create a new ActiveX Object, therefore the browser should be IE only.

    (Server Side) Just use any server-side scripting language (JS is not one).

提交回复
热议问题