Thanks very much for this!!! I will save this one. John -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bryan Garaventa Sent: Saturday, March 29, 2014 6:24 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: focusing on specific page elements Here is how to do it in IE. var object doc, object element let doc = IEGetCurrentDocument() let element = doc.getElementById("myElementID") element.setAttribute("tabindex", "-1") element.focus() The biggest problem with all of this is that it only works in IE. ----- Original Message ----- From: "John Martyn" <johnrobertmartyn@xxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Saturday, March 29, 2014 4:42 PM Subject: [jawsscripts] Re: focusing on specific page elements > This is very interesting since it might be the answer to the Netflix > online > player issue. If I can call javascript commands after I inject them, it > would be great. > I just know document write might not be the answer. How do you go about > this? > John > > -----Original Message----- > From: jawsscripts-bounce@xxxxxxxxxxxxx > [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Doug Lee > Sent: Saturday, March 29, 2014 4:08 PM > To: jawsscripts@xxxxxxxxxxxxx > Subject: [jawsscripts] Re: focusing on specific page elements > > Whatever DOM calls modify things should work I think. Examples include > .write from a Document object and .setAttribute from any element type. > You can assign .outerHTML but I think that can do odd things in some > cases. > > On Sat, Mar 29, 2014 at 04:22:52PM -0500, Jim Snowbarger wrote: > Good for you! So, what's the magic? How does one use jaws to insert Aria > Markup. > > > ----- Original Message ----- > From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxxx> > To: <jawsscripts@xxxxxxxxxxxxx> > Sent: Friday, March 28, 2014 8:07 AM > Subject: [jawsscripts] Re: focusing on specific page elements > > > I've had two projects this year in which I found it advantageous to > use JAWS' DOM access in Internet Explorer to inject ARIA attributes > into a displayed web page in order to make JAWS render it more > correctly in its virtual view. Focus can be set similarly - in fact, > because JAWS can directly access the DOM, it can do most anything > Javascript can do, up to and including writing Javascript to the page > and running it in realtime. Of course, it is always best when the page > itself comes up accessible by itself. > > On Fri, Mar 28, 2014 at 06:45:33AM -0600, John Martyn wrote: > 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 > > -- > Doug Lee, Senior Accessibility Programmer > SSB BART Group - Accessibility-on-Demand > mailto:doug.lee@xxxxxxxxxxxxxxxx http://www.ssbbartgroup.com > "While they were saying among themselves it cannot be done, > it was done." --Helen Keller > __________??? > > 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 > > -- > Doug Lee, Senior Accessibility Programmer > SSB BART Group - Accessibility-on-Demand > mailto:doug.lee@xxxxxxxxxxxxxxxx http://www.ssbbartgroup.com > "While they were saying among themselves it cannot be done, > it was done." --Helen Keller > __________o?= > > 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