469,275 Members | 1,314 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

Problem with style in getAttribute

Hallo, I have a problem with a part of code in my project. May I use exact part of a style attribute (for example width), like I´m trying in the example below? If it is possible, could you help me with it? The one I have written here doesn´t work. Thx

document.getElementsByTagName("div")[0].getAttribute('style', 'width');
Sep 16 '10 #1
1 1400
607 512MB
Try with this, it will work
Expand|Select|Wrap|Line Numbers
  1. document.getElementsByTagName("div")[0].style.width
Thanks and Regards
Ramanan Kalirajan
Sep 17 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by arashamiri | last post: by
1 post views Thread by wincek | last post: by
7 posts views Thread by Kamal | last post: by
6 posts views Thread by K. | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.