[jawsscripts] Re: focusing on specific page elements

  • From: John Martyn <johnrobertmartyn@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 28 Mar 2014 06:45:33 -0600

No, it has to be coded on the webpage. There is no way to inject javascript
commands into a webpage through jaws.
HTH
John

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James
Sent: Friday, March 28, 2014 6:44 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: focusing on specific page elements

Hi,
Do you then get JAWS to somehow insert this into the DOM?

Jim



-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of John Martyn
Sent: Friday, March 28, 2014 7:25 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] focusing on specific page elements

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


________________________________

This e-mail and any attachments to it are confidential and are intended
solely for use of the individual or entity to whom they are addressed. If
you have received this e-mail in error, please notify the sender immediately
and then delete it. If you are not the intended recipient, you must not
keep, use, disclose, copy or distribute this e-mail without the author's
prior permission. The views expressed in this e-mail message do not
necessarily represent the views of Highmark, its diversified business, or
affiliates.

__________�

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

__________�

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

Other related posts: