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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -