如何在单击按钮时动态创建html文件 [英] how to create html file dynamically on click of button
本文介绍了如何在单击按钮时动态创建html文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序中,我有三个文本框,如果用户输入数据并单击保存"按钮,则文本框数据应自动存储在html文件中.请在此引导我.方案
您当然可以动态创建HTML文件.您可以参考链接用于调用应用程序的自定义URL协议 [ ^ ]
当您将看到源代码.您会看到按下测试按钮时,将生成一个html文件,并由默认浏览器启动.
in my application i have three text boxes ,if the user enters data and click on save button , the text boxes data should be stored in html file automatically.plz guide me in this.
解决方案
Surely you can create a HTML file dynamically. You can refer to the link Custom URL Protocol for Invoking Application[^]
When you will see the source code. You can see that when test button is pressed, one html file is generated and is launched by the default browser.
这篇关于如何在单击按钮时动态创建html文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文