HTML element which defaults to display:inline-block - Javascript CSS Style Property

Javascript examples for CSS Style Property:display

Description

HTML element which defaults to display:inline-block

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript">
    window.onload=function(){/*from   w  ww . j  a  va  2s  .c  om*/
console.log(window.getComputedStyle(document.getElementById("im1")).display));
}

      </script> 
   </head> 
   <body> 
      <textarea id="im1">Test</textarea>  
   </body>
</html>

Related Tutorials