您好,欢迎来到吉趣旅游网。
搜索
您的当前位置:首页js中获取url地址的方法

js中获取url地址的方法

来源:吉趣旅游网
以下为JS获取几种URL地址的方法

thisURL = document.URL;

thisHREF = document.location.href;

thisSLoc = self.location.href;

thisDLoc = document.location;

thisTLoc = top.location.href;

thisPLoc = parent.document.location;

thisTHost = top.location.hostname;

thisHost = location.hostname;

tmpHPage = thisHREF.split( \"/\" );

thisHPage = tmpHPage[ tmpHPage.length-1 ];

tmpUPage = thisURL.split( \"/\" );

thisUPage = tmpUPage[ tmpUPage.length-1 ];

下面为使用JS获取MAC地址、IP地址及主机名的方法:

id=\"locator\" style=\"display:none;visibility:hidden\">

classid=\"CLSID:75718C9A-F029-11d1-A1AC-00C04FB6C223\"

style=\"display:none;visibility:hidden\">


MAC地址:


IP地址:


主机名:

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- jqkq.cn 版权所有 赣ICP备2024042794号-4

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务