Forcing Scrolling to Stay at the Page Top : Browser Scroll : Window Browser JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Window Browser » Browser Scroll »

 

Forcing Scrolling to Stay at the Page Top



<HTML>
<HEAD>
<TITLE>onScroll Event Handler</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function scrollBack() {
    window.scroll(0,0)
}
function init() {
    document.body.onscroll = scroll;
}
</SCRIPT>
</HEAD>
<BODY onLoad="init()">
<H1>onScroll Event Handler</H1>
<HR>
  This page always zips back to the top if you try to scroll it.
<P>
<IFRAME FRAMEBORDER=SCROLLING="no" HEIGHT=1000 SRC="http://www.navioo.com"></IFRAME>
</P>
</BODY>
</HTML>

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Window Browser
» Browser Scroll