Jump to content

Accesskey in IE


Recommended Posts

Hi, is there any way of using the accesskey to press a button in IE instead of using send, i have a recurring button that needs to be pressed to continue working and when i use send keys it sometimes open up add to favourites and starts opening inprivate windows etc, it's a bit annoying :), for example the button i want to interact with is called Avbryt, it has the accesskey "A" and Class:commonButton and has this Domlink

"document.all.data.contentWindow.document.all.item("command",2).childNodes.item(4).childNodes.item(0).childNodes.item(0).childNodes.item(0).childNodes.item(1)"

So the html code of the button is

"<BUTTON accessKey=A class=commonButton><U>A</U>vbryt</BUTTON>"

Any ideas would be great / Thanx

Link to comment
Share on other sites

Maybe, but it seems running a javascript on the page thru autoit is non responsive, anyway i did a workaround looking for 2 elements and then click by domlink when the 2 elements are true, bit ugly but better then send anyways :), thanx for the suggestion anyway i will dig further into that maybe

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...