Home > Web Front-end > JS Tutorial > body text

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

WBOY
Release: 2016-05-16 17:37:57
Original
961 people have browsed it

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';
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
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!