'hideFocus' Example : Hyper Link « HTML « JavaScript DHTML
- JavaScript DHTML
- HTML
- Hyper Link
'hideFocus' Example
<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.java2s.com">java2s.com home page</a>
<button onclick="function1();">Hide Focus</button>
</body>
</html>
Related examples in the same category