JavaScript - getAttribute - Style sub-attributes -
09-08-2006
, 12:00 PM
I have the following JavaScript statement...
document.getElementById("myElement").getAttribute( "style")
Given the above statement.... what type of object is returned ?
And how can I parse individual sub-attributes within the style attribute
?.... for example ....how can I parse for width ?.... height ?, etc. How
can I remove the width sub-attribute from a string of style attributes ?
Thanks
--
Philip |