How to find the Iframe content scrollheight and scroll width?
<p>I'm new to this Jquery and i have a trouble to find the iframe scrollheight and scrollwidth when the iframe hosting the external webpage.
i tried following code but its doesn't work and i searched a lot.</p>

<pre><code>$.fn.hasVerticalScrollbar = function () {
    // This will return true, when the div has vertical scrollbar
    return $frame[0].document.documentElement.offsetHeight() &gt; this.height();
  }
  $.fn.hasHorizontalScrollbar = function () {
    // This will return true, when the div has horizontal scrollbar
    return $frame[0].document.documentElement.offsetWidth() &gt; this.width();
}
</code></pre>

<p>help please.</p>
