HighTechTalks DotNet Forums  

JavaScript - getAttribute - Style sub-attributes

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss JavaScript - getAttribute - Style sub-attributes in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Philip
 
Posts: n/a

Default 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

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.