Home  >  Article  >  Web Front-end  >  Extension example of using js to get url parameters_javascript skills

Extension example of using js to get url parameters_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:06:49966browse

Recently, the website was revised and I found that the advertisements on the website are all direct URLs. If you redirect it, it will be better for the full-time users of this website
An html page is needed to pass the parameters, so I used a js code to get the url parameters, just a funciton
Referencehttp://img.jb51.net/url.htm?url=http://www.baidu.com

Copy Code The code is as follows:



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn