Get current URL in JavaScript?
来源:互联网 发布:阿里云 usb调试 编辑:程序博客网 时间:2024/06/05 20:15
http://stackoverflow.com/questions/406192/get-current-url-in-javascript
To get the path, you can use:
var pathname = window.location.pathname; // returns path onlyvar url = window.location.href; // returns full url
0 0
- Get current URL in JavaScript?
- get current url in current page
- Get current URL with JavaScript?
- Get the self URL of current page
- PHP Get the Current Page URL
- How to get current date in magento?
- Get current stack trace in Java
- how to get current path in qt
- PHP: How to Get the Current Page URL
- Using GPS to get current location in Android
- How to get current thread ID in asp.net
- how to get cwd(current working directory) in python?
- get current Unix time in milliseconds using bash
- OpenOffice.org Code Snippets--Get and modify the current selection in calc (in C++)
- How to get the current time in milliseconds in C Programming?
- JavaScript从url中获取参数 / js get url parameter
- Groovy get current time
- get current project path
- Optimize Facebook Sharing
- Creating “Share This on Facebook/Twitter” Links
- 随笔20141103
- How To Set Up Twitter Cards
- java.net.SocketException: Broken pipe
- Get current URL in JavaScript?
- The Secret to Getting a Large Facebook Link Thumbnail
- How does Facebook Sharer select Images?
- Using CORS
- a tag中span居中
- Ubuntu 14.10下Chromium浏览器添加Flash插件的方法
- Goodbye to my CSDN blog~~~
- STL::vector的源码学习
- Android改变图像的饱和度、亮度和对比度