How can I get the computed border width of an HTML element in Javascript? (No matter where and how the border is indicated.)
You want something like window.getComputedStyle() , but this is not a 100% cross-browser function - you need a little more difficulty for this .
window.getComputedStyle()