<html> <body> <script> function function1() { document.all.myLink.hideFocus = "true"; alert("The A element lost focus.\nPress tab key to verify"); } </script> <a tabindex="2" id="myLink" href="http://www.java2java.com">java2s.com home page</a> <button onclick="function1();">Hide Focus</button> </body> </html>