Does Object.focus() not move the virtual cursor as well? On 23/06/2014 05:14, Doug Lee wrote: > This is a case where the Document Object Model (DOM) is probably > better than anything inside JAWS. Look up the querySelector functions > for a way to nail your element on the first shot, or use > getElementsByTagName and loop through them to find it yourself. > > Of course, if your goal is actually to move the virtual cursor to the > desired element, the below approach may well be more effective, since > there's no easy way to move the virtual cursor to an element given its > DOM object. > > On Sun, Jun 22, 2014 at 10:34:01PM -0500, Jim Snowbarger wrote: > Ah, very good. Thanks for this! > > ----- Original Message ----- > From: "Travis Roth" <travis@xxxxxxxxxxxxxx> > To: <jawsscripts@xxxxxxxxxxxxx> > Sent: Saturday, June 21, 2014 9:05 PM > Subject: [jawsscripts] Re: MoveToTagWith Attribute > > > I do not believe there is a function to do this automatically. > You can make your own, however. > MoveToTagWithAttribute() > Then > D = GetElementDescription() > If stringContains(d, attribute-value-pair) then you've found it break > Else repeat > > > > -----Original Message----- > From: jawsscripts-bounce@xxxxxxxxxxxxx > [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jim Snowbarger > Sent: Saturday, June 21, 2014 5:20 PM > To: jawsscripts@xxxxxxxxxxxxx > Subject: [jawsscripts] MoveToTagWith Attribute > > When you use this function, one of the parameters is the name of an > attribute that the intended tag must possess. These seem to be the names of > the various tag parameters that you get when you do > control+shift+jawsKey+f1. But, can you also specify the value that the > attribute must have? If so, it isn't clear from the description. > But, not being able to specify the parameter value, but to only specify that > the parameter must exist really limits how uniquely you can specify exactly > which tag it is that you want. Most tags of a given type will have the > same set of attributes. Their uniqueness lies in the values each of those > attributes have. > So, is there a way to search for a tag that has a particular attribute, and > also has it set to a particular value? > > > > > __________??? > > 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 > > > > __________??? > > 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