Div.style in Firefox renders error
Div.Style property is not recognised by FireFox. Internet Explorer accepts it and renders the corresponding function, where FF couldnt do that. I was breaking my head with this, then finally the solution is found to be, referring the Div(or any element) by its Id, rather than using it directly.
Eg. Code that works properly in IE
Javascript
Function(){
….
divId.style.display = “none”;
….
}
Eg. Code that works properly in both IE and FF
Javascript
Function(){
….
document.getElementById(divId).style.display = “none”;
….
}
Firefox cant recognize the object correctly, we need to refer that by DOM techniques.
Powered by ScribeFire.