Forum Moderators: phranque
<a href="archive1.htm" target="_self">open this archive within the iframe</a>
have a main web page that contains an iframe (as in, a box with containing a subsidiary html file). Inside the iframe subsidiary html, there are links.
<a href="example.com/pg1">Link 1</a><br>
<a href="example.com/pg2">Link 2</a><br>
<a href="example.com/pg3">Link 3</a><br>
width="100%" only because it produces an error. It is a good idea to validate the entire page when things aren't working as expected. The width code may not be the cause but it does produce an error using the w3c validator: [validator.w3.org...]
========================
(index.htm)
========================
<!DOCTYPE html>
<head>
<title>Page with iframe</title>
</head>
<body>
<p>This is above frame.</p>
<iframe src="framed.htm" title="The framed page."></iframe>
<p>This is below frame.</p>
</body>
</html>
=========================
(framed.htm)
========================
<!DOCTYPE html>
<head>
<title>Frame content with links</title>
</head>
<body>
<p>This is in the frame.</p>
<ul>
<li><a href="link1.htm">Link 1</a></li>
<li><a href="link2.htm">Link 2</a></li>
<li><a href="link3.htm">Link 3</a></li>
</ul>
</body>
</html>
===============================
(link1.htm)
========================
<!DOCTYPE html>
<head>
<title>Link 1</title>
</head>
<body>
LINK 1 - content
</body>
</html>
===============================
(link2.htm)
========================
<!DOCTYPE html>
<head>
<title>Link 2</title>
</head>
<body>
LINK 2 - content
</body>
</html>
========================
(link3.htm)
========================
<!DOCTYPE html>
<head>
<title>Link 3</title>
</head>
<body>
LINK 3 - content
</body>
</html>
<a href="https://google.com/" target="_self">Google</a><br />
<a href="https://www.webmasterworld.com/" target="_self">WebmasterWorld</a><br />
<a href="https://wikipedia.org/" target="_self">Wikipedia</a><br />