|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Link Focus
I was wondering if anyone knew how or if its possible to set the Focus to a link? I know how to set the focus to a textbox, but I can't get the same thing to work for a link. I've been trying document.linkname.focus(), but it doesn't seem to work. Any help is appreciated.
Thank you. |
|
#2
|
||||
|
||||
|
Try this:
document.links[0].focus(); This should put focus on the first link your page. |
|
#3
|
|||
|
|||
|
Hi!
You can also put an ID on the link-element. <a href="damngoodsite" id="hyper">link</a> -- <script> document.getElementById("hyper").focus(); </script> mvh jonta Quote:
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Link Focus |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|