摘要: 由于<input type="file">的value属性石只读的,所以要取消选择只能通过其他途径,此处有2种方法JS代码 <input type="file" id="fileupload" name="file" /> 第一种: (display:none时不能用) var obj = document.getElementById('fileupload') ; obj.select(); document.execCommand("delete") 阅读全文
posted @ 2013-03-06 14:41 panlovestan 阅读(1481) 评论(0) 推荐(0) 编辑
摘要: 代码如下:<input type=button value=刷新 onclick="history.go(0)"> 代码如下:<input type=button value=刷新 onclick="location.reload()"> 代码如下:<input type=button value=刷新 onclick="location=location">代码如下:<input type=button value=刷新 onclick="window.navigate(locat 阅读全文
posted @ 2012-11-25 10:45 panlovestan 阅读(195) 评论(0) 推荐(0) 编辑