How can I get the computed border width of a HTML element in Javascript? (Independent of where and how the border is specified.)
+1
A:
You want something like window.getComputedStyle()
, but that's not a 100% cross-browser function - you'll have to work a little harder for that.
Matt Ball
2010-08-25 19:23:58