How can I get all my links to scroll to the top of the page by placing one function in a coldfusion code
<p>This is the function that I currently have.
Instead of one link I want all my links to scroll to the top of the page. The function is to be placed within a coldfusion code.</p>

<pre><code>&lt;script&gt;
function ScrollClick() {
         // Scroll to top

                 document.body.scrollTop = document.documentElement.scrollTop = 0;

        // Open up a link in my iframe
 document.getElementById('MainWindow').src="DocDisplayCategory.cfm?categoryID=89"
            }
&lt;/script&gt;   
&lt;/li&gt;
</code></pre>
