Sandy
Sandy

Reputation: 14125

targeting frame one frame from another

i have main html page which have two frames frame1 and frame2. frame1 is showing tree.php page and i want that when i click on node of tree displayed in tree.php some html or php page should be displayed in frame2. how i can achieve this???

Upvotes: 1

Views: 302

Answers (1)

Tim
Tim

Reputation: 9489

Give frame2 a name

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

And set the target of the linking node to that name

<a href="page3.php" target="MainWindow">

Upvotes: 4

Related Questions