Tips for empty links

Source: Internet
Author: User

If your page has <a href= "#" > .......</a> such as the link, and the scroll bar has appeared, and pull down a bit, then when clicking on this connection will return to the top of the page, it is annoying. Here are some ways to prevent this problem

1 will <a href= "#" > .......</a>

Change to <a href= "javascript:;" > .......</a>


2 will <a href= "#" > .......</a>

Change to <a href= "#" onclick= "return false" > .......</a>


3 If you really do not need a connection, but just want to let the browser put the mouse over here to let the mouse into the hand

Then you can also put ... Before <a> remove, use <span style= "Cursor:hand" > Replace also can


4 will <a href= "#" > .......</a>

Change to <a href= "# # # >.......</a>


5 will <a href= "#" > .......</a>

Change to <a href= "javascript:void (0)" >.....</a> ac qq:2881064157

Tips for empty links

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.