I currently have three IFrames set up in my index.html
<html>
<head>
<title>Frame</title>
<style>
.Top {
float:both;
width:99.7%;
height:18%;
}
.menu {
float:left;
width:13%;
height:82%;
}
.mainContent {
float:left;
width:86.5%;
height:82%;
}
</style>
</head>
<body>
<iframe class="Top" src="judul.html" id="atas"></iframe>
<iframe class="menu" src="list.html" id="kiri"></iframe>
<iframe class="mainContent" src="" id="tengah"></iframe>
</body>
</html>
Next, here is the code snippet from list.html
<html>
<head>
<title>List</title>
</head>
<body>
<br></br>
<a href="about.html" target="tengah" style="color:blue;margin-center:40px;font-family:Segoe UI;">Main page</a>
<br></br>
<a href="list.html" target="tengah" style="color:blue;margin-center:40px;font-family:Segoe UI;">About Us</a>
</body>
</html>
In the index.html file, the goal is to target the IFrame with the id tengah
to open links from list.html
While adding a target=
attribute alongside the href
works in framesets, it may behave differently in IFrames. To make this work properly in an IFrame, additional steps or adjustments might be necessary.
Thank you for your help!
P.S.: The judul.html only affects the Top frame and does not interfere with the other IFrames.