title: How can I detect a Scrollbar presence ( using Javascript ) in HTML iFrame?
body: <p>How can I detect a Scrollbar presence ( using Javascript ) in HTML iFrame ?</p>
  
  <p><strong>I have already tried :</strong></p>
  
  <pre><code>        var vHeight = 0;
          if (document.all) {
            if (document.documentElement) {
              vHeight = document.documentElement.clientHeight;
            } else {
              vHeight = document.body.clientHeight
            }
      } else {
        vHeight = window.innerHeight;
      }
  
      if (document.body.offsetHeight &gt; vHeight) {
        //when theres a scrollbar
      }else{
        //when theres not a scrollbar
      }
  </code></pre>
  
  <p><strong>And I also had tried :</strong></p>
  
  <pre><code>           this.scrollLeft=1;
      if (this.scrollLeft&gt;0) {
          //when theres a scrollbar
          this.scrollLeft=0;
          }else{
          //when theres not a scrollbar
          return false;
      }
  </code></pre>
  
  <p>With no success..</p>
  
  <p>I have searched  the <em>javascript objets</em> on <em>DOM Inspector</em>, but didn't find anything.</p>
  
  <p>Is is possible to detect a scrollbar presence in a iframe in javacscript ?</p>
  
  <hr>
  
  <p>The iframe content comes from the same domain. </p>
  
  <p>No success until now..</p>
  
  <p><a href="http://www.upvtp.com.br/file.php/1/help_key.jpg">alt text http://www.upvtp.com.br/file.php/1/help_key.jpg</a></p>