javascript - all() function not working in Firefox -
javascript - all() function not working in Firefox -
in ie below line working . popup div element.
popup.all("submenu").innerhtml = ""; but in other browsers below error coming
popup.all not function.
is there alternative function in other browsers.
please suggest me. thanks.
try this:
var popup=document.getelementbyid('popup'); (i in popup.childnodes) { if (popup.childnodes[i].nodetype == 1) { popup.childnodes[i].innerhtml = ''; } } javascript
Comments
Post a Comment