How to Fast Up and Down code with Javascript for wapka sites

Hello friends Sometimes a page may be so long that scrolling up/down the page Is time consuming.You might decide to add this Javascript code to give users a better experience in your website.

For going down,

<a name="down"></a><a href="#top">UP</a>

(forward) For going up,

<a name="top"></a><a href="#down">Down</a>

copy accurately using quote to get best result