Home > Article > Web Front-end > ASP.NET jQuery Example 9 Using the control hyperlink to achieve the return to top effect_jquery
To achieve this effect, you must first understand the following basic knowledge:
Form scroll event: $(window).scroll(function(){...});
Get the form scroll distance: $ (window).scrollTop();
Get the height of the form: $(window).height();
Understanding the above content, you can achieve the effect of returning to the top through the hyperlink control.
1. Prepare the interface structure code: