Jump to content

what part does this? (onfocus='blur')


rootKID

Recommended Posts

Hey W3S.

 

I was recently on a website whatching their source-code (for fun well noted).

 

And i noticed this peace of code on one of their ahref links:

onfocus='blur()'

any idea what part that plays? Coz i do not Oo...

Link to comment
Share on other sites

I think they were trying to prevent the little dotted outline that appears on focused elements. There's an easier way to fix that, though:

 

a:focus { outline:none; }

Link to comment
Share on other sites

sorry for late reply. Thanks for the info tho! :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...