Can I know if my page is going to have a scroll bar before it renders. PHP Javascript
<p>I have a <code>header.php</code> which has my <code>&lt;a name='#top' /&gt;</code></p>

<p>and I have a <code>footer.php</code> which I want to do something like</p>

<pre><code>if ($_SERVER[' is scroll bar ']
{
  echo &lt;a href='#top'&gt;Back to Top&lt;/a&gt;
}
</code></pre>

<p>is it possible with PHP or Javascript to do something like this, where I can know if my page is going to be very long ahead of render time?</p>
