Home >Web Front-end >JS Tutorial >Example introduction to the role of javascript:void(0)_Basic knowledge
When making a page, if you want to do nothing after clicking a link, or complete other things in response to the click, you can set its attribute href = "#". However, there will be a problem when the page has a scroll bar. , after clicking, it will return to the top of the page, or jump to the set anchor point, which is a bad user experience.
Usual usage is: