Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!


Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 




From the folks who brought you High Rankings!

- - - - -

Broken Link - Empty Url?

  • Please log in to reply
2 replies to this topic

#1 toolongsinthescreen


    HR 4

  • Active Members
  • PipPipPipPip
  • 252 posts
  • Location:UK

Posted 07 February 2012 - 10:02 AM

I have ran a broken link checker on my site which finds any dead links, 404s that shouldn't be etc.

It has found one which it calls an empty URL which is linked from many pages on my site.

i think the link in question it has found is actual a java script link, it looks like this:

<a href="" class="showmore" >Choose more...</a>

has any one any ideas if the above coding is wrong?

thank you,


#2 chrishirst


    A not so moderate moderator.

  • Moderator
  • 7,718 posts
  • Location:Blackpool UK

Posted 07 February 2012 - 01:53 PM

The href attribute of a link should NOT be left empty, to be self-referential there should be at least a '#' in the href attribute, and to prevent the onclick event from bubbling up to the anchor element, add return false; to the event handler.

#3 TheGreatHefin


    HR 2

  • Members
  • PipPip
  • 15 posts

Posted 15 March 2012 - 09:54 AM

QUOTE(shimlad @ Feb 7 2012, 08:32 PM) View Post
<a href="" class="showmore" >Choose more...</a>

You just need to do this to the above code.

<a href="#" class="showmore" >Choose more...</a>

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

We are now a read-only forum.
No new posts or registrations allowed.