I downloaded a return to top JS function on a website before and found it to be very useful. The only problem is that Google Chrome does not support it. After some modifications, I can now pass the test. Now I’m posting the code for everyone’s reference, I hope it can help
The var Sys = {}; defined in the header is used to determine the browser, which is very useful
Page calling method:
goTopEx();《SCRIPT》