怎么先清空input text文本框的内容然后在写入?
我原来的程序代码片段:
FileObject.SaveToFile Server.MapPath(SavePath & strFileName) '保存文件
Response.Write( " <SCRIPT> parent.form1.hb_files.value+= '\n "&SavePath& " "&strFileName& " ' </SCRIPT> ")
Response.Write( " <SCRIPT> parent.form1.hb_files.focus() </SCRIPT> <a href= 'javascript:history.go(-1); '> 文件上传成功,请返回继续上传 </a> <meta http-equiv= 'refresh ' content= '1;url=save_upfiles.asp '> ")
我现在想让他在Response.Write( " <SCRIPT> parent.form1.hb_files.value+= '\n "&SavePath& " "&strFileName& " ' </SCRIPT> ")的时候先把form1.hb_files里面的东西清空在写入内容,不然每次他都给后面追加
------解决方案--------------------Response.Write( " <SCRIPT> parent.form1.hb_files.value= ' "&SavePath& " "&strFileName& " ' </SCRIPT> ")