Click to See Complete Forum and Search --> : Targeting frames


Eppie
11-14-2003, 04:19 AM
Hi, I have a line of script in my dhtml menu that changes the content of an iframe called "kenkin":

this.LinkTxt.indexOf('javascript:')!=-1?eval(this.LinkTxt):DcLoc.kenkin.location.href=this.LinkTxt}

how do i change this so it targets a frame called "kenkin" instead?

thanks.....

dragle
11-14-2003, 08:23 AM
Hi,

It depends on how and where you are setting cLoc. But replacing this:

cLoc.kenkin.location.href=this.LinkTxt

with this:

top.frames["kenkin"].location.href=this.LinkTxt

will probably work.

HTH,

Eppie
11-14-2003, 08:27 AM
Thanks very much dragle! Working perfectly now...