Targetting DIV tags in html frameset

liunx

Guest
Hi guys<br />
<br />
Can I target a link in a frame to a DIV tag within another frame?<br />
<br />
If, for example, I have a content frame with something like:<br />
<br />
<DIV id="thisone"><br />
something here<br />
</DIV><br />
<br />
..can I have a link in a different frame, something like:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"thisone">a link</a><br />
<br />
or will this just look for a frame called "thisone", not find it and open in a new window, as I suspect?<br />
<br />
Cheers<!--content-->if you changed that div into an iframe I believe it would find it. Provided you used name not id<br />
<br />
However, you link to it like:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"filetoappear.htm" target="thisone">Link</a><br />
<br />
<br />
<br />
<br />
<iframe src=http://www.webdeveloper.com/forum/archive/index.php/"source for iframe initially - blank if none.htm" name="thisone"><A href="source for iframe initially - blank if none.htm">Your browser does not support inline frames. Please follow this hyperlink.</a></iframe><!--content-->Hmm, tried changing<br />
<br />
<div id="this">blah</div><br />
<br />
to<br />
<br />
<iframe id="this">blah</iframe><br />
<br />
with no joy. Am I missing something? I've never really used iframes so not too sure of the correct syntax here.<br />
<br />
Cheers<!--content-->is the iframe empty to start with?<!--content-->Sorry mate, just seen your revised post. Works a treat!<br />
<br />
Tar lar<!--content-->great! I thought I'd better explain LOL.<!--content-->You can also specify width, height and frameborder.<br />
<br />
<iframe src=http://www.webdeveloper.com/forum/archive/index.php/"" name="thisone" width="200" height="200" frameborder="0"> etc </iframe><!--content-->
 
Back
Top