Anthony Evans wrote:
> 
> Actually, I just discovered one of my STUPID errors (camelcase vs uppercase
> on the HTML part of innerHTML) below and it turns out that
> 
> var fnTemp = new Function( "sValue", "window." + this._frameId +
> ".document.documentElement.innerHTML = sValue;" );
> fnTemp( sValue );
> 
> does the trick.
> 
> Ugly, but it works.  Anything more elegant, similar to
> 
> window.frames(sFrameName).document.documentElement.innerHtml = sValue;

 
document.getElementById(sFrameName).contentDocument.body.innerHTML =
sValue;

and
 
document.getElementById(sFrameName).contentDocument.documentElement.innerHTML
= sValue;

both work in Mozilla. 

(But don't mix and match, 'cos '.body.' won't work if one has already
used '.documentElement.')



-- 
Regards,
Val Sharp - Edinburgh


Reply via email to