
javascript
iteye_17593
这个作者很懒,什么都没留下…
展开
-
[转]用于刷新网页的javascript函数
window.history.go(0)window.location.reload()window.location.href=location.hrefwindow.location.assign(location.href)document.execCommand('Refresh')window.navigate(location.href)window.navigate("#...2006-12-06 13:08:24 · 125 阅读 · 0 评论 -
不同浏览器 JavaScript 的getYear 问题
同样的方法var date=new Date();document.write(date.getYear());IE 输出 2006 Firefox 输出 106解决方法: 使用date.getFullYear()IE 输出 2006 Firefox 输出 2006 参考资料 JScript ...2006-12-27 11:28:13 · 147 阅读 · 0 评论 -
javascript 判断中文字符长度
js 代码 <script language=< span="">"javascript"> String.prototype.gblen = function() { var len = 0; for (var i=0; i<this.length; i++) { if ...2007-05-16 11:15:46 · 202 阅读 · 0 评论 -
javascript 比较开始时间和结束时间
//时间格式 2007/01/01 var bvalue=document.getElementById('begin_time').value;var evalue=document.getElementById('end_time').value; if(bvalue.length>9 && evalue.length>9)...2007-10-19 12:03:04 · 173 阅读 · 0 评论 -
fckeditor 检测输入长度
取值的办法FCKeditorAPI.GetInstance(ClientID).GetXHTML(true)以下是设值的办法FCKeditorAPI.GetInstance(ClientID).SetHTML("字符串")利用JS插入一段字符串FCKeditorAPI.GetInstance('content').SetHTML(FCKeditorAPI.GetInstance(''co...2007-10-30 12:52:17 · 155 阅读 · 0 评论