Hi

I need to set the border width of a link when it is clicked. The link calls a javascript and so I need a way to identify which link has been clicked, hence the outline...

i tried

this.style.borderWidth = 'thin';

but to no avail...?!

I have already assigned border-color and border-style in the style sheet if that makes any difference...

Try

<a href="#" onclick="this.style.border='thin black solid';return false;">Click me!</a>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.