- function IsIExplorer()
- {
- var UA = navigator.userAgent;
- is360se = UA.toLowerCase().indexOf('360se') > -1 ? true : false;
- issougou = UA.toLowerCase().indexOf('metasr') > -1 ? true : false;
- //alert(UA.toLowerCase());
- if (!window.ActiveXObject || is360se || issougou) {
- alert('请您使用Microsoft Internet Explorer(IE)浏览器登录本系统!');
- window.opener = null;
- window.open(' ', '_self', ' ');
- window.close();
- }
- }
- //该片段来自于http://www.codesnippet.cn/detail/020820134924.html
来源: http://www.codesnippet.cn/detail/020820134924.html