WWW FAQs: How do I eliminate the border that shows up when I click on a link?


2006-05-31: Many modern browsers try to be helpful by displaying a border when you click on a graphical link, such as a hotspot in a client-side imagemap. The same border sometimes appears when an image is moved using DHTML. Unfortunately, this can be ugly or inappropriate in many page designs. Solutions are slightly different for every browser, so a complete fix is somewhat complicated. WebDevTips offers the most comprehensive workaround available.

Legal Note: yes, you may use sample HTML, Javascript, PHP and other code presented above in your own projects. You may not reproduce large portions of the text of the article without our express permission.

Got a LiveJournal account? Keep up with the latest articles in this FAQ by adding our syndicated feed to your friends list!