Contrôle local
<a href = "link1.htm" onfocus = "this.blur ()"> link1 </a>
<a href = "link1.htm" onfocus = "this.close ()"> link1 </a>
<a href = "link1.htm" hidefocus = "true"> link1 </a>
<a href = "link1.htm" hidefocus = "hidefocus"> link1 </a>
Contrôle global
Implémentation CSS
a {blr: expression (this.onfocus = this.close ());} / * ne supporte que c'est-à-dire, trop d'utilisation est inefficace * /
a {blr: expression (this.onfocus = this.blur ());} / * ne supporte que c'est-à-dire, trop d'utilisation est inefficace * /
A: Focus {-moz-outline-style: Aucun; } / * Ie ne prend pas en charge * /
HTC implémente IE Prise en charge, et la page ne sera efficace qu'après le chargement
Enregistrez le code suivant en tant que fichier avec .htc comme extension
Exemple de code [www.cuoxin.com]