js jquery 获取当前页面的url,获取frameset中指定的页面的url
来源:互联网 发布:mysql中的delete语句 编辑:程序博客网 时间:2024/05/17 08:45
js jquery 获取当前页面的url,获取frameset中指定的页面的url
js jquery 怎么获取当前页面的url,获取frameset中指定的页面的url,内容如下
设置或获取整个url为字符串:window.location.href
设置或获取href属性中在井号“#”后面的分段:window.location.hash
设置或获取location 或 URL 的 hostname 和 port 号码:window.location.host
设置或获取href属性中跟在问号后面的部分:window.location.search
设置或获取对象指定的文件名或路径:window.location.pathname
设置或获取与URL关联的端口号码:window.location.port
设置或获取 URL 的协议部分:window.location.protocol
同样的要在frameset中获取到指定的页面的url也是可以的只要把window换成你指定的页面就可以了,比如:
设置或获取整个url为字符串:window.parent.frames['mainFrame'].location.location.href
设置或获取href属性中在井号“#”后面的分段:window.parent.frames['mainFrame'].location.location.hash
设置或获取location 或 URL 的 hostname 和 port 号码:window.parent.frames['mainFrame'].location.location.host
设置或获取href属性中跟在问号后面的部分:window.parent.frames['mainFrame'].location.location.search
设置或获取对象指定的文件名或路径:window.parent.frames['mainFrame'].location.location.pathname
设置或获取与URL关联的端口号码:window.parent.frames['mainFrame'].location.location.port
设置或获取 URL 的协议部分:window.parent.frames['mainFrame'].location.location.protocol
设置或获取整个url为字符串:window.location.href
设置或获取href属性中在井号“#”后面的分段:window.location.hash
设置或获取location 或 URL 的 hostname 和 port 号码:window.location.host
设置或获取href属性中跟在问号后面的部分:window.location.search
设置或获取对象指定的文件名或路径:window.location.pathname
设置或获取与URL关联的端口号码:window.location.port
设置或获取 URL 的协议部分:window.location.protocol
同样的要在frameset中获取到指定的页面的url也是可以的只要把window换成你指定的页面就可以了,比如:
设置或获取整个url为字符串:window.parent.frames['mainFrame'].location.location.href
设置或获取href属性中在井号“#”后面的分段:window.parent.frames['mainFrame'].location.location.hash
设置或获取location 或 URL 的 hostname 和 port 号码:window.parent.frames['mainFrame'].location.location.host
设置或获取href属性中跟在问号后面的部分:window.parent.frames['mainFrame'].location.location.search
设置或获取对象指定的文件名或路径:window.parent.frames['mainFrame'].location.location.pathname
设置或获取与URL关联的端口号码:window.parent.frames['mainFrame'].location.location.port
设置或获取 URL 的协议部分:window.parent.frames['mainFrame'].location.location.protocol
- js jquery 获取当前页面的url,获取frameset中指定的页面的url
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- jquery获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- JQUERY获取当前页面的URL信息
- SaveFileDialog 保存文件示例和一些属性
- EXTJS 动态树 JAVA JSON 来组织数据
- Android入门之文件系统操作(一)简单的文件浏览器
- arm-none-linux-gnueabi交叉工具链安装
- 为什么不能将类模板的声明与类模板函数实现分开写
- js jquery 获取当前页面的url,获取frameset中指定的页面的url
- ORA-01102: cannot mount database in EXCLUSIVE mode
- 各大软件公司经典算法面试题
- 关于彭宇案的思考
- 浅谈互联网运营模式
- 快速排序
- 购物网第一阶段总结笔记4:友情链接模块之 友情链接的查询和修改
- struts2 格式转换机制
- 动态壁纸探究