|
-
Aug 27th, 2001, 05:00 PM
#1
Thread Starter
Junior Member
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?
-
Aug 27th, 2001, 05:02 PM
#2
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 27th, 2001, 05:10 PM
#3
Thread Starter
Junior Member
If there is a button in frame a, when clicked a link opens up in frame b.
-
Aug 27th, 2001, 05:13 PM
#4
Code:
<input type="button" name="cmdLink" value="Click" onClick="document.frames.b.location.href='http://www.yahoo.com'; return true">
I think will do it
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 28th, 2001, 03:29 AM
#5
Fanatic Member
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.... ?
-
Aug 29th, 2001, 11:33 AM
#6
Fanatic Member
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>
GWDASH
[b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|