Exception for a specific URL?

Exception for a specific URL?

Hi

I want to add a color change to an anchor tag. But only on a few pages.

I am trying this but it does not work:

       
$(function(){            
   var urlName = http://domain.com/page/
   if (urlName == window.location.href) {
      $('.news-list-item > h3 > a:first').css('color','#8CAAC3').css('text-decoration','underline');
   }
});


Any suggestions?

Thanks