When writing programs, we often encounter problems with jumping pages. We often use them. If the customer wants to use prompts when jumping, this will not be effective, such as:
("<script>alert('Congratulations, registration was successful!');</script>");
("");
At this time, our prompt content will jump before it comes out, and there is no difference between ("");
At this time, we use the following code to experiment:
("<script language=javascript>alert('Congratulations, registration was successful!')</script>");
("<script language=javascript>=''</script>");
This fulfills our requirements, and after the prompt, jump to the page.
The most important thing is that the statement can implement the page of one framework to refresh the page of another framework after executing the server-side code (it cannot be reached, at least I did not find it):
For example: There are two frames in the page, frameLeft and frameRight, and then refresh the page in frameLeft after executing server-side code in the frameRight page.
The most common thing before was that after registration, the login box was automatically refreshed and the login box was replaced with a login page. As long as a paragraph is added after the successfully registered code, the page of another frame can be refreshed. The code is as follows:
("<script language=javascript>alert('Congratulations, registration was successful!')</script>");
("<script language=javascript>=''</script>");
("<script>alert('Congratulations, registration was successful!');</script>");
("");
At this time, our prompt content will jump before it comes out, and there is no difference between ("");
At this time, we use the following code to experiment:
("<script language=javascript>alert('Congratulations, registration was successful!')</script>");
("<script language=javascript>=''</script>");
This fulfills our requirements, and after the prompt, jump to the page.
The most important thing is that the statement can implement the page of one framework to refresh the page of another framework after executing the server-side code (it cannot be reached, at least I did not find it):
For example: There are two frames in the page, frameLeft and frameRight, and then refresh the page in frameLeft after executing server-side code in the frameRight page.
The most common thing before was that after registration, the login box was automatically refreshed and the login box was replaced with a login page. As long as a paragraph is added after the successfully registered code, the page of another frame can be refreshed. The code is as follows:
("<script language=javascript>alert('Congratulations, registration was successful!')</script>");
("<script language=javascript>=''</script>");