Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q260 When clicked, Internet Explorer puts a selection rectangle around an image link that stays there even after the script finishes. How can I get rid of it?

You are here: irt.org | FAQ | JavaScript | Link | Q260 [ previous next ]

<script language="JavaScript"><!--
function defocus(x) {
    if (navigator.appName == 'Microsoft Internet Explorer' || document.all)
        x.blur();
}
//--></script>

<a href="#" onClick="defocus(this)"><img src="picture.gif" border="0" width="16" height="16"></a>

Feedback on 'Q260 When clicked, Internet Explorer puts a selection rectangle around an image link that stays there even after the script finishes. How can I get rid of it?'

©2018 Martin Webb