Click to See Complete Forum and Search --> : Target Frame


Webskater
09-19-2003, 03:04 PM
I have a page with two iframes on it. I need to click a link in one of them and have a page in the other frame scroll to a bookmark.
Can you reference an iframe in html? Using target="nameofframe" does not work - it opens a new window. If I do it in javascript using
onclick="window.parent.frames('framename') ...
how do I reference the bookmark so that the page in the second iframe scrolls so the bookmark is visible?
Thanks for any help.

Charles
09-19-2003, 04:15 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Example</title>

<iframe src="" name="myIframe"></iframe>

<div><a href="http://www.w3.org/TR/html4/present/frames.html#adef-target" target="myIframe">The "Target" Attribute</a></div>