在另一页面的iframe中从另一页面的iframe中打开html页面

时间:2018-07-27 15:07:26

标签: javascript php html iframe target

第1页

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
    <h1>page1</h1>
<iframe src="" name="iframe1" id="iframe1"></iframe>
</body>
</html>

page1包含iframe1,它为空,开头没有显示任何内容。

Page2

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
    <h1>page2</h1>
<iframe src="opening.php" name="iframe2" id="iframe2"></iframe>
</body>
</html>

page2包含显示opening.php的iframe2。

opening.php

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
<a href="check.php" target="iframe1">click</a>
</body>
</html>

opening.php包含一个具有href = check.php和

的链接

check.php

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
<h1>alright</h1>

</body>
</html>

我想从open.php打开check.php,这在page1的iframe1中的page2的iframe2中显示。请帮忙!

0 个答案:

没有答案