sat sat - 7 months ago 33
CSS Question

how to remove css property using javascript?

is it possible to remove a CSS property of an element using JavaScript ?
e.g. I have = 1.2
now i want to remove the zoom property through JavaScript ?


Typically You cannot remove properties from built-in objects like that, and certainly not in IE (the zoom attribute of the style object is a IE extension)

You can set it to the default value: = "";

the effective zoom will now be whatever follows from the definitions set in the stylesheets (through link and style tags)

So this syntax will only modify the local style of this element.