Home  >  Article  >  Web Front-end  >  Application of js in three cases of frame page jump (target)_javascript skills

Application of js in three cases of frame page jump (target)_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:37:57964browse

1. Jump out of the frame and on the parent page.
jsp:

Copy code The code is as follows:



java:
Copy code The code is as follows:

PrintWriter out = response.getWriter();
out.write("< script type='text/javascript'>window.parent.frames.location.href = '../welcome.en';");
return;

2. Jump from a frame to the frame with name="main".
Copy code The code is as follows:



3.ContentList iframe name of the current page
Copy code The code is as follows:

window.ContentList.location.href = '../welcome.en';
Statement:
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