PDA

Click to See Complete Forum and Search --> : javascript like <a href="hello.htm" target="frame1">


i00
Feb 1st, 2004, 06:04 AM
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

mendhak
Feb 1st, 2004, 10:53 PM
frames['framename'].window.location = 'yomomma.html';


Is that what you mean?

CornedBee
Feb 2nd, 2004, 03:08 AM
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.