js cant access css code example Example: js not able to read css alert(getComputedStyle(document.getElementById("myDiv")).borderTopColor);