Original Post
Hi, I want to get the values eg like obj.style.width, from the style sheet. Except the css file is external, so it just returns 0 from what i wrote above. Anyway I tried using: window.getComputedstyle which only works for netscape/firefox and obj.currentstyle which only works for ie. So I was wondering if there are any other ways to get a value from the stylesheet that works with most browsers? For example in a scenario like this: /*css file */ input.textfield {width:5em;} <-- html file --> thanks