A
Andrew Poulos
I'm dynamically building some html OBJECT code and I use this function
to and PARAM elements:
// function to add a PARAM element to an element (parent, name, value)
addParam = function(prt,n,v) {
var p = document.createElement("param");
p.name = n;
p.value = v;
prt.appendChild(p);
}
It appears to work fine with IE6, MZ1.7.5, and FF1.0 but IE5 and 5.5
complain that the line "par.appendChild(p);" does this:
"unexpected call to method or property access"
What's happening and how can it be fixed?
Andrew Poulos
to and PARAM elements:
// function to add a PARAM element to an element (parent, name, value)
addParam = function(prt,n,v) {
var p = document.createElement("param");
p.name = n;
p.value = v;
prt.appendChild(p);
}
It appears to work fine with IE6, MZ1.7.5, and FF1.0 but IE5 and 5.5
complain that the line "par.appendChild(p);" does this:
"unexpected call to method or property access"
What's happening and how can it be fixed?
Andrew Poulos