Link Brackets | JavaScriptSource

Link Brackets

Steve Padonak Jun 27, 2007


Want to spruce up your links without adding background images? This script will enclose your designated links in brackets. You can keep the other links separate, if you like.


Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: linkBrackets.js


Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Paste this code into the HEAD section of your HTML document.


Paste this code into the BODY section of your HTML document

Leave a Response


Hey, you can accomplish this with two lines of CSS. Here you go: a:before {content: "[";} a:after {content: "]";}

Ethan Dec 5, 2012

onMouseOver in Safari 3.0 beta makes the links completely disappear. The only way to see the text again is to reload the page.

Benjamin Jun 29, 2007