Home  >  Q&A  >  body text

javascript - After clicking the exit button in top.jsp, right.jsp jumps to the page and jumps to login.jsp

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?

天蓬老师天蓬老师2675 days ago1108

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默2017-06-23 09:15:43

    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.

    reply
    0
  • 扔个三星炸死你

    扔个三星炸死你2017-06-23 09:15:43

    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?

    reply
    0
  • Cancelreply