随笔分类 -  JS

摘要:关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法"window.location.href"、"location.href"是本页面跳转"parent.location.href"是上一层页面跳转"top.location.href"是最外层的页面跳转举例说明:如果A,B,C,D都是jsp,D是C的ifram 阅读全文
posted @ 2011-06-04 10:04 S E N Y I 阅读(515) 评论(0) 推荐(0)
摘要:<script type="text/javascript">vartype=navigator.appName if(type=="Netscape"){ varlang=navigator.language } else{ varlang=navigator.userLanguage } //取得国家代码的前两个字母 varlang=lang.substr(0,2) //英语 if(lang=="en"){ window.location.href="http://www.une-system.com.cn/ 阅读全文
posted @ 2011-05-15 21:19 S E N Y I 阅读(602) 评论(0) 推荐(0)