[thelist] Re: DOM help p l e a s e

Jason Hepi contact at hepi.fsnet.co.uk
Tue Jul 16 05:24:00 CDT 2002


If I need to remove the focus from a link I've always used this:

<!--
function unfocusImageLink() {
for (a in document.links) document.links[a].onfocus=document.links[a].blur;
}

if (document.all) {
document.onmousedown = unfocusImageLink;
}
// -->


This way you don't have to write a seperate event to every link within a
page.
Not sure how it will effect the onkeypress behavior that you've mentioned
though.

Jason





More information about the thelist mailing list