JS incapable de lire CSS

alert(getComputedStyle(document.getElementById("myDiv")).borderTopColor);
Wicked Walrus