Response. by default, Rederect redirects to this page. Therefore, besides using Windows in js. in addition to the open or add target attribute to tag A, it seems that you cannot open A new page in the background. Otherwise, you can set the target
This time, you can select your favorite color on the homepage to go to the corresponding page.
Select green to go to the green page:
Select red to go to the Red Page:
Okay. Here we will see four pages:
Select the color in index. jsp and click the
Response. by default, rederect redirects to this page. Therefore, besides using Windows in JS. in addition to the open or add target attribute to tag a, it seems that you cannot open a new page in the background. Otherwise, you can set the target
Summary of Two Methods for redirecting URL parameters in JavaScript this article mainly introduces two methods for redirecting URL parameters in JavaScript. Let's not talk about them here. Let's look at the sample code directly.
I. Character
From the blog: Shanghai-leisurelyOriginal address: http://www.cnblogs.com/yoyoketang/tag/python%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/ObjectiveA cock silk man a summon up the courage to the goddess B call vindicate, Goddess B is a scheming to
Obtain historical URL addresses and determine whether to redirect
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Script Language
=
"
Javascript
"
Type
=
"
Text/JavaScript
"
Objective:Today I learned the redirect vulnerability, this vulnerability is better understoodVulnerability Name: URL Redirection VulnerabilityThreat: LowThe source of the vulnerability: developers to the head of the corresponding filtering and
Question 1:
When Response. Write is connected to Response. Redirect, Response. Write cannot be displayed and is directly transferred to the page of Response. Redirect.
Solution:
Response. Write (" ");
If the script content contains variables, the
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.