jquery - Scroll To Top On Page Load (HTML) -


i have tried both onload="window.scrollto(0,0);" , onload="$('html,body').scrolltop(0);" after page loads still stays @ current position, using frames. have tried of other suggestions still no luck please point me in right direction. need add scroll top frame? need page contains frame reload when frame inside reloads, hope makes sense.

<body onload="window.scrollto(0,0); $('html,body').scrolltop(0);"> <iframe id="my-iframe-tag" scrolling="no"> </iframe> </body>

using scrolltop method on dom ready:

$(document).ready(function(){     $(this).scrolltop(0); }); 

Comments

Popular posts from this blog

How to get the arclen between two curve points in Maya? -

C++ Linked List -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -