»
EnglishFrenchVietnamese

Print - Top of Page - JavaScriptBank.com

Full version: jsB@nk » Utility » Top of Page
URL: https://www.javascriptbank.com/top-of-page.html

Top of Page © JavaScriptBank.comUse this JavaScript to add a 'Top of Page' link at the bottom of your page.

Full version: jsB@nk » Utility » Top of Page
URL: https://www.javascriptbank.com/top-of-page.html



HTML
<script language="JavaScript">/* Place this script at the bottom of your page */////////////////////////////////////////////Top of Page JavaScript////By Premshree Pillai////http://www.qiksearch.com/////////////////////////////////////////////* Message to be displayed */var topOfPageMsg='<a href="#" class="top">Top of Page</a>';var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1;var ns6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1;var ns4=document.layers;lC=(ie4)? document.body.scrollHeight : document.height;rC=(ie4)? document.body.clientHeight : window.innerHeight-20;if(lC>rC) {document.write(topOfPageMsg);}var agt=navigator.userAgent.toLowerCase();function nsReload() { window.location.reload(); }function reLoad() {if (ns4&&(agt.indexOf("win")!=-1)) {setTimeout("window.onresize=nsReload", 500);}}if(ns4) {reLoad();}else if(ie4) {window.onresize=new Function("window.location.reload()");}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->