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 ...
cguan_77
8
Nearly a Posting Virtuoso
Recommended Answers
Jump to Posthi 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 ...
Jump to Postis 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 similarNo..., its exactly like that.
Inline scripts are, 'a bad coding practice' everybody …
All 6 Replies
chandru7
-1
Junior Poster in Training
futingkiller
0
Newbie Poster
Troy III
272
Posting Pro
futingkiller
0
Newbie Poster
Troy III
272
Posting Pro
cguan_77
8
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.