[jawsscripts] focusing on specific page elements

  • From: John Martyn <johnrobertmartyn@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 28 Mar 2014 05:25:10 -0600

I just thought of this. If you want to bring control to a specific form
element, the best thing to do is use javascript.
One an OnClick element of a link you can call a function that says

Document.formName.formelementName.focus()

 

This would be the fastest way to bring focus to an element whether it be a
form or a link etc. But you need to name the name and id of that control so
javascript sees it. For example:

Function clickIt(){

Document.divName.ElementName.Focus()

}

HTML code

<a href="" OnClick="javascript:ClickIt()">

 

<div name="objectName" id="objectName">

Some element here

</div>

Or if you are using multiple forms

Document.formName.FieldName.Focus()

<form name="myForm" id="myForm" action=.

<input name=FieldName" id="fieldname" type="text">

Just a thought at 5 am after thinking about it.

HTH

John Martyn



__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: