Tag: jQuery
function ScrollTo(element) { var text = document.getElementById(element); var p = $(text).offset().top; $('html,body').animate({ scrollTop: p }); }