javascript - After clicking the exit button in top.jsp, right.jsp jumps to the page and jumps to login.jsp
天蓬老师
天蓬老师 2017-06-23 09:13:43
0
2
1095

Divide the page into several frames. After logging in, display the exit button in top.jsp

Click the exit button, and the right.jsp on the back side should jump to login.jsp again

But how to do it? How to control the jump of right.jsp in top.jsp?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
習慣沉默

To solve the problem, use: (for specific personal circumstances, see the details of the DOM tree structure)

window.parent.frames("rightFrame").window.location.href="right.jsp";

And this line of code cannot be followed by a redirect command: response.redirect();
Redirect will invalidate the previous page jump.

扔个三星炸死你

Do you need front-end jump or server-side jump? jsp means forwarding and redirection, I think redirection is what you want

If it’s a front-end jump, you can exit directly at that location<a href="./right.jsp">Exit</a>Wouldn’t the page jump if you change it to this?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!