|
-
Feb 1st, 2004, 07:04 AM
#1
javascript like <a href="hello.htm" target="frame1">
ok i want something to trigger a javascript event simmilar to this equivlent in html:
<a href="hello.htm" target="frame1">
i know about location.href in javascript but can't work out how to specify a target
.... also the target is not a child frame ... but a subframe in the parents form
thanks kris
-
Feb 1st, 2004, 11:53 PM
#2
frames['framename'].window.location = 'yomomma.html';
Is that what you mean?
-
Feb 2nd, 2004, 04:08 AM
#3
parent.frames['frameid'].location.href = "yomamma.html";
Unlike the frog's, this works if it's the parent's frame. And in other browsers than IE, I think assigning directly to location is only supported in IE, though I'm not sure about this.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|