May
Firefox Javascript problem
I’m running the following script in IE7, working perfectly.
For some reason, I can’t get it to work in Firefox!
Please help!
function appendDIV(objID,newID)
{
// create a DIV element, using the variable eDIV as a reference to it
eDIV = document.createElement("div");
//use the setAttribute method to assign it an id
eDIV.setAttribute("id",newID);
// append your newly created DIV element to an already existing element.
document.getElementById(objID).appendChild(eDIV);
}
function clearInnerHTML(objID)
{
var obj = document.getElementById(objID);
while(obj.firstChild) obj.removeChild(obj.firstChild);
}
function mbtn_select(e)
{
var targ;
var currentpage = "esc";
if (!e) var e = window.event;
if (e.targ) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3)
targ = targ.parentNode;
var parentBox = targ.parentNode;
var btn_text=targ.firstChild.nodeValue;
var pagename = currentpage + btn_text + ".aspx";
window.location = pagename;
}
Relevant Links

