隐藏钮如何得到当前的系统时间值
各位高手,好简单的问题。就是点一下IDDD按钮,当前时间显示在另一个文本框中。另外那个隐藏钮也需要得到当前的系统时间值。
<script>
function id(){
var now = new Date();
var h = now.getHours();
var m = now.getMinutes();
var s = now.getSeconds();
var timeValue="";
timeValue+=h;
timeValue+=m;
timeValue+=s;
document.all.up_file_id.value=timeValue;
document.all.up_file_id1.value=timeValue;
}
</script>
<input name="up_file_id"><input type=button onclick="id()" value="iddd">
<input name="up_file_id1" type="hidden">