I cobbled together the following function from examples on the internet to
set named spanned items in the parent form. It works fine for IE but not at
all for netscape. What other browser conditions do I need to test for and
what is the correct syntax for the
sode so that I am covered for all cases? Thanks!
function WriteContent(na me, newText)
{
var browser=navigat or.appName
var version=parseIn t(navigator.app Version)
if (browser=="Micr osoft Internet Explorer")
eval("self.open er.document.all ."+name+".inner HTML='"+newText +"'");
else
{
self.opener.doc ument.layers[name].document.close ();
self.opener.doc ument.layers[name].document.write (newText);
self.opener.doc ument.layers[name].document.close ();
}
}
set named spanned items in the parent form. It works fine for IE but not at
all for netscape. What other browser conditions do I need to test for and
what is the correct syntax for the
sode so that I am covered for all cases? Thanks!
function WriteContent(na me, newText)
{
var browser=navigat or.appName
var version=parseIn t(navigator.app Version)
if (browser=="Micr osoft Internet Explorer")
eval("self.open er.document.all ."+name+".inner HTML='"+newText +"'");
else
{
self.opener.doc ument.layers[name].document.close ();
self.opener.doc ument.layers[name].document.write (newText);
self.opener.doc ument.layers[name].document.close ();
}
}
Comment