ZVON > References > DOM2 Reference

focus (method )

Owning interface and usage:  
HTMLAnchorElement.focus()

Member of these other interfaces:  
none

Description:  
Gives keyboard focus to this element.

Parameters:  
none

Returns:  
nothing

Exceptions:  
none


Example:
Source:
   <A id="aLink" href="#">a test link</A>
JavaScript:
  function focusLink() {
    var main = document.getElementById('aLink');
    main.focus();
  }
  function blurLink() {
    var main = document.getElementById('aLink');
    main.blur();
  }
Try it:    
See it:



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet




Related sites:
  • dotNet Slackers - Your latest resource for ASP.NET
  • Dotnet Spider - Outsourcing and Offshore software development in India
  • XML - Xselerator, XSL Editor, BizTalk Utilities, XML Tutorials, Learn XML
  • Planet Source Code - The largest public source code database on the Internet
Alojamiento Web Domain Names conference call service answering service VoIP Internettelefonie
Hosted Exchange, SDSL VoIP Internettelefonie AT VoIP Internettelefonie DE