If you get the "current" domain name host = Window.location.host;
Url=document.domain;
url = window.location.href;
Get full URL path: The following code can be used to fully document the results:
thisdloc = document.location; Thisurl = document.
Erbix is the cloud platform for building and deploying JavaScript applications. In addition to supporting rinjojs, commonjs modules, and PostgreSQL, it also supports Scalable On-Demand host allocation.
Erbix is a platform for building and deploying
In web development, many developers prefer to use JavaScript to get the current URL URLs, this article for you to summarize the more commonly used to get the URL of the JavaScript implementation code
The URL is the Uniform Resource Locator (uniform
I have seen several interview questions recently, one of which is about writing a method to get the field contents of the URL query section of the browser address bar. Although I have seen the related things before, but feel a little vague, so it
Turn around.Assuming the current page full address is: Http://www.test.com:80/aaa/bbb.aspx?id=5&name=kelli"/HTTP" is the protocol name"Www.test.com" is the domain name"80" is the port number"AAA" is the station name."Bbb.aspx" is the page name (file
This article transferred from: http://blog.csdn.net/chendi1985/article/details/5291773Window.location method Get URLUniform Resource Locator (Uniform Resource Locator, URL)The complete URL consists of the following
URL is: Uniform Resource Locator (uniform Resource Locator, URL)The complete URL is composed of these parts:Scheme://host:port/path?query#fragmentScheme: Communication protocolCommonly used Http,ftp,maito, etc.
Http://localhost/test/test.htm?id=1
If an encoding is required, it indicates that this is not suitable for transmission. There are a variety of reasons, such as a large size that contains private data. For a URL, encoding is required because some characters in the URL may cause
This article mainly introduces multiple methods for js to accurately obtain the url Information of the current page, including the regular expression method and split method. For more information, see WEB development, javascript is often used to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.