I have a list of links which style I control by CSS. I got a problem with the URL they are going, so I want to control that by javascript. So in my <a> i dont want to have href="link.html' but if I take that off, the properties that I had with CSS stop working.
a{
text-decoration: none;
color: #808080;
}
a:visited {
text-decoration: none;
color: #808080;
}
a:hover{
text-decoration: none;
color: blue;
}
How can I keed that properties only having a <a> tag?
You could just return false on your links. Like: