I have the following jQuery code
$(document).ready(function () { $(\'.navtoTop\').click(function(){ $(\"html\").scrollTop( $(\"#topofthePage\").of
Better way to use:
$(document).ready(function () { $('.navtoTop').click(function(){ $(window).scrollTop() $("window").scrollTop( $("#topofthePage").offset().top ); }); });