javascript - Iframe Scroll to top of page on load with tabs -
i have i-frame of "design own uniform" app within page. design own uniform app consists of 4 tabs (select product, select colours, insert details, receive quote).
each time go new tab page stays @ same horizontal position previous tab. there way can make page load @ top of i-frame tab tab?
i've seen done js, i've never seen specific example tabs involved.
any appreciated.
thanks,
bigscreentv
you should use scrollto function
html
    <a href='#id'>btn</a>     <div id='id'></div>  $('a').click(function() {     var elementclicked = $(this).attr("href");     var destination = $(elementclicked).offset().top;     $("html:not(:animated),body:not(:animated)").animate({ scrolltop: destination-15}, 500 );     return false; });      
Comments
Post a Comment