将帧从另一帧定向到一帧

时间:2010-02-09 11:10:11

标签: html

我有一个主页面,它有两帧frame1和frame2。 frame1显示了tree.php页面 我希望当我点击tree.php中显示的树的节点时,应该在frame2中显示一些html或php页面。我怎么能实现这个???

1 个答案:

答案 0 :(得分:4)

给frame2一个名字

<frameset cols="35%,65%">
<frame src="page1.php">
<frame src="page2.php" name="MainWindow">
</frameset>

并将链接节点的目标设置为该名称

<a href="page3.php" target="MainWindow">
相关问题