All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
将内容自动添加到指定文本域的JS_[Html教程]

Writer: 归海一刀 Article type: Programming skills(编程技巧) Time: 2014/3/30 5:34:50 Browse times: 246 Comment times: 0

将内容自动添加到指定文本域的JS_[Html教程]


Head photo

Go homepage
Upload pictures
Write articles

将内容自动添加到指定文本域的JS_[Html教程]

















  在添加新记录时,有时候我们需要将部分动态内容自动添加到指定的文本域,例如上传一个文件后,将文件名自动添加到一个独立的记录框内,以ASP代码为例,以下代码实现了此功能。









<% if request.querystring ("upload") <> "" then %><% end if %>







  代码解释:这个行为是在打开的子窗口中实现的。先使用条件判断决定执行顺序,若条件满足,即向父窗口中名为"mainform"的表单的文本域插入值(文本域名为content),,然后关闭打开的子窗口。




  原文:http://www.pagehome.cn/club/Announce/announce.asp?BoardID=101&ID=643&AUpflag=1&ANum=1











 





 





 





 





 




































There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.