I am trying to change the background of a link to a color when it is clicked. I have seen many examples using jquery. It looks clean and is simple. I have it implemented and I basically copied courtesy of someone on stack putting together a nice simple fiddle. My problem is when the link goes to open you can see the white background and then it is gone.
Some of you will say this is because you are using :active pseudoclass in CSS however, I am not using that at all. However, it is behaving exactly as such.
Here is a fiddle with an example that works. http://jsfiddle.net/stewbydoo/9R5CG/15/
My question and problem is I copied this nav in the fiddle and put it in my code and change the href to actually link to another page. My file structure is simple with an index.html, about.html, contact.html, and link to my blog.
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="someblogaddresshere" target="_blank">Contact</a></li>
When I click the links for the simple .html pages the link acts like it is using the :active pseudoclass and it is not. When I click the link to my blog it actually adds the background to the link like it is supposed to and opens up the page in a new tab.