SyntaxFix
Write A Post
Hire A Developer
Questions
This is how you do it:
var e = document.getElementById('myIdName'); var value = window.getComputedStyle(e, null).getPropertyValue("zIndex"); alert('z-index: ' + value);