[thelist] Can you give me the best xmas present ever? javascript
Mark Howells
mark at mountain.ch
Mon Dec 24 06:25:33 CST 2001
I imagine that the error you're getting is actually
'objFrame.location is not an object'
The problem lies in your definition of objFrame, which should read
var objFrame=top.frames[frmName]
Best regards for a merry Christmas and happy new year.
Mark Howells
Working in a Winter Wonderland
http://www.mark.ac
> John Ward (wardsuk at yahoo.co.uk) wrote:
> <SCRIPT LANGUAGE="javascript">
> <!--
> function fnChangeFrame(frmName, frmSrc) {
> var objFrame = top[frmName];
> objFrame.location.replace(frmSrc);
> }
>
> function fnSwapMulti(frm1, frm1Src, frm2, frm2Src) {
> // assumes param 1 for frame 1, etc.
> fnChangeFrame(frm1, frm1Src);
> fnChangeFrame(frm2, frm2Src);
> }
>
> // -->
> </SCRIPT>
More information about the thelist
mailing list