Return to Snippet

Revision: 3325
at July 10, 2007 02:44 by joseluis


Initial Code
var className = navigator.appName=="Netscape" ? 'class': 'className';
obj.setAttribute(className,'clase');

Initial URL

                                

Initial Description

                                

Initial Title
asignar class o classname a getAttribute en función del browser

Initial Tags
javascript

Initial Language
JavaScript