How do I make a button target a certain frame in a frames page?
How do I make a button target a certain frame in a frames page?
in what sense?
If there is a button in frame a, when clicked a link opens up in frame b.
I think will do itCode:<input type="button" name="cmdLink" value="Click" onClick="document.frames.b.location.href='http://www.yahoo.com'; return true">
:)
crptcblade, you are right about the onClick="document.frames.b.location.href...."
but doesn't it need to have javascript:(all one word) before the document.frames.... ?
no, only if its the href of a link, onclick doesn't, ie:
<a href="javascript:history.back();">Go Back</a>
vs.
<a href="" onclick="history.back();">Go Back</a>