I am trying to figure out how I can get all my links to scroll to the top of the page as well as open up the desired page in my iframe. Is this possible? I need the link to perform two different functions.
Alarm Standard
<script>
function myFunction() {
// Scroll to top
document.body.scrollTop = document.documentElement.scrollTop = 0;
// Open up a link in my iframe
<A HREF="DocDisplayCategory.cfm?CategoryID=47" TARGET="MainWindow">
</A>
}
</li>
</script>