Home >Web Front-end >JS Tutorial >Example code for div to be fixed at the top when scrolling to the top of the page_javascript skills
This example uses Javascript to fix the DIV at the top when it reaches the top when scrolling the page. The effect is a bit flashy under IE, the effect URL: http://www.keleyi.com/keleyi/phtml/fixdiv.htm
The following is the code: