Alright, I\'m having trouble understanding the Bootstrap Affix component. My goal is to have a \"Back to Top\" link appear at the bottom left of the screen (in the margin) if/wh
thanks for the back to top button, proved useful for me as well :)
one minor improvement though would be to avoid using the onclick=""
on the tag but instead using
jQuery's
event registrator:
HTML:
...
...
JS:
$('#backToTopBtn').click(function(){
$('html,body').animate({scrollTop:0},'slow');return false;
});