How to auto-scroll a webpage?

The function has to be inside script tags, not style tags. Also, you may want to specify the “linear” parameter.

HEAD

< script type=“text/javascript” >

$(window).load(function()
{
$(“html, body”).animate({ scrollTop: $(document).height() }, 80000, “linear”);
});

function EmbedInit()
{
// Init will be called when this page is loaded in the client.
return;
}
< /script >

1 Like