Can I use onfocus with CSS ?

admin

Administrator
Staff member
I am fed up of seeing the frame appear when I click on any link so I have been using the command:<br />
<br />
onfocus="this.blur()"<br />
<br />
I have been putting this into every link I have and it is very troublesome to find each and every link. Is there anyway I can apply this to a whole page or even a whole website ? And if so, is it able to validate okay ?<br />
<br />
I haven't much experience with CSS / HTML so any advice will be great.<br />
<br />
Thanks<br />
<br />
Toot<!--content-->nope, you have to do it for every link<!--content-->It would be nice to have this in CSS though... maybe in 3.0 hopefully.<!--content-->Thanks for replying. Saves me keep trying to get it to work when in fact it won't.<br />
<br />
Pity.<br />
<br />
Cheers<br />
<br />
Toot<!--content-->This was recently posted in another forum (<!-- m --><a class="postlink" href="http://www.webxpertz.net/forums/showthread.php3?s=&threadid=26847">http://www.webxpertz.net/forums/showthr ... adid=26847</a><!-- m -->) I frequent,<br />
and would seem to answer your question.<br />
<br />
<script><br />
onload=function(){<br />
for (i=0; i<document.links.length;i++)<br />
document.links.onfocus = function (){this.blur()};<br />
}<br />
</script><br />
<br />
.....Willy<!--content-->Wow !! So it may be possible with javascript.<br />
<br />
Thanks. I will give it a try and see if it works.<br />
<br />
Cheers<br />
<br />
Toot<!--content-->I tested it using alerts.<br />
Let me know if it works for you. ;) <br />
<br />
.....Willy<!--content-->
 
Back
Top