67 {
68 prompt("请复制网站地址:",Msg);
69 }
70 },
71
72 /**//* 加入收藏
73 @site 站点名称
74 @url 地址
75 */
76 AddBookmark : function (site, url){
77 if(navigator.userAgent.toLowerCase().indexOf('ie') > -1) {
78 window.external.addFavorite(url,site)
79 } else if (navigator.userAgent.toLowerCase().indexOf('opera') > -1) {
80 alert ("请使用Ctrl+T将本页加入收藏夹");
81 } else {
82 alert ("请使用Ctrl+D将本页加入收藏夹");
83 }
84 },
85
86 /**//* 打开Url指定宽度和高度的窗口 */
87 OpenWindows : function (url,width,height)
88 {
89 window.open(url,'newwin','width='+width+',height='+height);
90 return false;
91 },
92
93 /**//* 禁止浏览器的Javascript错误提示 */
94 CloseError : function(){
95 window.onerror = function(){return true;};
96 },
97
98 /**//* 获取浏览器URL */
99 GetUrl : function(){
100 return location.href;
101 },
102
103 /**//* 获取URL参数 */
104 GetUrlParam : function(){
105 return location.search;
106 },
107










