Home > Web Front-end > JS Tutorial > body text

Extension example of using js to get url parameters_javascript skills

WBOY
Release: 2016-05-16 19:06:49
Original
958 people have browsed it

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:



Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template