unigodx
Programmer
- Jan 1, 2009
- 8
Normally, I can set focus on a link element ( <a heref="..." ) by just getting that element by ID and then use focus().
However, I have to set focus on an element that is not a link. It has a structure as followed..
<span class="mw-headline">History</span>
Can anybody please suggest me a solution? I can write only the script but cannot do anything directly to the body of the web page.
My intention is to set a temporary focus on that element, which is in the middle of a very very long page full of texts. So I can just press [Tab] and instantly move to a link nearest to that span element
Thank You.
However, I have to set focus on an element that is not a link. It has a structure as followed..
<span class="mw-headline">History</span>
Can anybody please suggest me a solution? I can write only the script but cannot do anything directly to the body of the web page.
My intention is to set a temporary focus on that element, which is in the middle of a very very long page full of texts. So I can just press [Tab] and instantly move to a link nearest to that span element
Thank You.