<div id='a' style='display:none'></div> <script> alert(document.getElementById('a').style.display) alert(document.getElementById('a').id) </script>