Home > Web Front-end > HTML Tutorial > Newbie, have a problem opening other pages in an iframe window? _html/css_WEB-ITnose

Newbie, have a problem opening other pages in an iframe window? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:20:02
Original
1258 people have browsed it

The key web page code of the frame web page main:




;/iframe>                                                           /iframe>


Manu.jsp web page key code:





Question bank management Test paper management Personal information

tiku.jsp webpage key code:




The frame structure, that is, open the hyperlink to the page to be connected in id=left
Question 2: Click the "Question Bank Settings" hyperlink in tiku.jsp, how to open the hyperlink in the frame structure on the right side of main, that is, id=right Connected pages


I just started making web pages, please guide me!


Reply to discussion (solution)

I scanned it but didn’t look carefully. This requires js.
If the space on the left and right always exists, you can call these two pages directly from the beginning, then hide them and display them when you click the hyperlink. Otherwise, it will be displayed and hidden dynamically.

target="name value of iframe", do not use id


Question bank settings Open the linked page in the frame or iframe specified by the attribute. Please set the name attribute and value to the frame or iframe, and the value is the same as the target attribute value of the corresponding a tag


You can add it to your subpage The parent object is used in the child page. The parent object can implement DOM operations on the parent page in the child page.

For example, for your question 1, you can bind a javascript function in the corresponding hyperlink of the manu.jsp page,

call parent.window.getElementById("left").src="xxxxxxx ";


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