![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript笔记
bergtang
这个作者很懒,什么都没留下…
展开
-
javascript获取指定链接GET参数函数
获取 Iframe 父页面函数 //获取父页面完整URL function parentUrl(){ var isInIframe = (parent !== window), parentUrl = null; if (isInIframe) { parentUrl = document.referrer; } return parentUr原创 2016-03-05 15:08:36 · 294 阅读 · 0 评论 -
javascript获取Iframe父页面函数
//获取父页面完整URL function parentUrl(){ var isInIframe = (parent !== window), parentUrl = null; if (isInIframe) { parentUrl = document.referrer; } return parentUrl; }原创 2016-03-05 14:59:42 · 528 阅读 · 0 评论 -
js获取当前页面URL地址
设置或获取对象指定的文件名或路径。 alert(window.location.pathname) 设置或获取整个 URL 为字符串。 alert(window.location.href); 设置或获取与 URL 关联的端口号码。 alert(window.location.port) 设置或获取 URL 的协议部分。 alert(window.locat转载 2016-03-05 16:03:18 · 472 阅读 · 0 评论