使用javascript将文本框值插入.txt文件 [英] insert textbox value into .txt file using javascript

查看:87
本文介绍了使用javascript将文本框值插入.txt文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要帮助,以便使用javascript将文本框值插入.txt文件.

我创建了一个网页,其中包含用户名,电子邮件和电话号码等字段.然后,当用户单击提交"按钮时.这些字段应保存到userinfo.txt或userinfo.xml文件中.仅javascript代码不使用任何其他服务器端代码.

我需要JavaScript代码.请任何人帮我...

Hi All,

i need help, for insert textbox value into .txt file using javascript.

i have created one webpage, in which fields like username, email and phone number. then when user click on the submit button. these fields should be save into userinfo.txt or userinfo.xml file. only javascript code don''t use any other server side code.

I need javascript code. please any one help me...

推荐答案

希望
Hope This will clear your idea .....

regards
koolprasad2003 :)


实际上,建议不要在客户端计算机上执行任何IO操作.要写入任何文件,您需要使用ActiveX对象,这通常是用户在其计算机上不允许的.
Actually this is not advisable to perform any IO operations on client machine. For writing any file you need to use ActiveX object which normally users don’t allow on their machines.


这篇关于使用javascript将文本框值插入.txt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆