| | |
Link with Focus
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Sep 2009
Posts: 45
Reputation:
Solved Threads: 8
0
#2 20 Days Ago
Try like this while loading the page for all links
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
if(A1.focus == true)
Chandru
SilverlightScripting.com
SilverlightScripting.com
•
•
Join Date: Oct 2009
Posts: 17
Reputation:
Solved Threads: 2
0
#3 20 Days Ago
•
•
•
•
hi guys, just want to ask if it is possible to check which link on the page receives a focus? For example, i got Links name A1, A2, A3, A4 and A5. How to check which link is currently receiving the focus? is it possible to do? thanks ...
read more about that here:
http://www.w3schools.com/tags/tag_a.asp
0
#4 20 Days Ago
•
•
•
•
hi guys, just want to ask if it is possible to check which link on the page receives a focus? For example, i got Links name A1, A2, A3, A4 and A5. How to check which link is currently receiving the focus? is it possible to do? thanks ...
someLink.onfocus=doYourThingWhere "doYourThing" is the function you want to invoke when that paricular link has recieved focus.
•
•
Join Date: Oct 2009
Posts: 17
Reputation:
Solved Threads: 2
0
#5 20 Days Ago
•
•
•
•
someLink.onfocus=doYourThing
Where "doYourThing" is the function you want to invoke when that paricular link has recieved focus.
<a href="" onfocus="some_function">link1</a>
the only problem with this is that onfocus occurs when onclick(when you click) occurs, you usualy use onfocus when you are using <input type=text> or something similar
0
#6 20 Days Ago
•
•
•
•
is not exactly like that, more like:
<a href="" onfocus="some_function">link1</a>
the only problem with this is that onfocus occurs when onclick(when you click) occurs, you usualy use onfocus when you are using <input type=text> or something similar
Inline scripts are, 'a bad coding practice' everybody agrees upon. Me to.
The onfocus event gets fired when element receives focus. That's all you need to know. And there are many ways to send focus to element. You can even do it by script.
ie
someLink.focus() will suffice.Link focus is implemented for accessibility reasons and especially for keyboard navigation ability.
![]() |
Similar Threads
- Default Link exchange with electronic/internet billing site (Relevant Link Exchanges)
- Wallpaper Site - Exchange links!!!! (Website Reviews)
- How To Make A Website Site Review (Website Reviews)
- focus on link (JavaScript / DHTML / AJAX)
- link color (HTML and CSS)
- Clicked Link Countdown (HTML and CSS)
- What is the best way to market a link exchange program? (Promotion and Marketing Plans)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: how do i make a simple scrollbar with javascript and css
- Next Thread: is it possible to over write internal java script?
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array browser bug captchaformproblem cart checkbox child class close codes createrange() css cursor date debugger decimal dependent design disablefirebug dom dropdown editor element embed engine enter error events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming progressbar prototype redirect runtime safari scale scriptlets scroll search security shopping size software toggle unicode w3c web wysiwyg \n






