i want to focus a particular area in html page,when href link click
how a particular area will be focus on page
Collapse
X
-
Tags: None
-
-
that shown code would work when there is a defined $-function as it would be the case with using a javascript-framework like jQuery, and the 'area' (aka: element) that should be focused has a focus-method. Further it would be executed onload.
so the requirement should be a bit more detailed and best would be to give an example - the basics to a solution for this are:
1. retrieve a reference to the element that should be focused
2. call a appropriate method to set focus to that element
3. call that all from the onclick-handler of the linkComment
-
Comment