How to enter a URL to jump to the target URL_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:19:34
Original
1470 people have browsed it

For example, if I enter www.A.com/***&jumpUrl=http://www.B.com/*** on the browser, the target address I want to achieve is http://www.B .com/***, but it must start with www.A.com/ in the browser. This is important.
How to achieve this? Entering www.A.com/***&jumpUrl=http://www.B.com/*** was my own thought and was wrong.
Could you please tell me how to enter the address?


Reply to the discussion (solution)

js parses the url parameters, finds a jumpUrl, parses out the parameter value, and then window.location.href="http://www. B.com";

Determine the source in a page such as http://www.B.com (you can use document.referrer to judge). If it does not come from www.A.com, jump back to www.A .com

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