<div id='div' style='display:none;z-index:1'>123</div> <script> alert(document.getElementById('div').style.display) alert(document.getElementById('div').style.zIndex) </script>