| View previous topic :: View next topic |
| Author |
Message |
wakewatcher
Joined: 15 Jul 2006 Posts: 139
|
Posted: Wed Jun 06, 2007 2:50 am Post subject: Hotkeys and website navigation |
|
|
I need to generate hotkeys to navigate consistent websites. That is I have websites that have links to "previous", "next" and "back to index." Is there a simple way to map keys to make these transitions? (I can modify the html if that helps.)
Thanks |
|
| Back to top |
|
 |
wakewatcher
Joined: 15 Jul 2006 Posts: 139
|
Posted: Wed Jun 06, 2007 5:39 am Post subject: |
|
|
| Some additional notes. The web browser will always be firefox. The page always only has those three links. If I could set the focus somehow I could count tabs to get there but haven't figured out how to set the focus. I've been reading up on the javascript approach but so far haven't fully groked it. |
|
| Back to top |
|
 |
wakewatcher
Joined: 15 Jul 2006 Posts: 139
|
Posted: Wed Jun 06, 2007 5:50 am Post subject: |
|
|
I'm getting close. I found by pasting: | Code: | | javascript:document.links[2].focus(); |
into the address bar I can get to the links I need. (Thanks n-l-i-d from 11/29/06 post) Now I've got to figure out how to use ControlSetText with the FF address bar. I think I'm close. |
|
| Back to top |
|
 |
wakewatcher
Joined: 15 Jul 2006 Posts: 139
|
Posted: Wed Jun 06, 2007 6:45 am Post subject: |
|
|
Well not as close as I thought. I can't seem to get FF to 'take' the new control text. From Window Spy I got MozillaWindowClass1 as the control so figure something like this should work:
| Code: | SetTitleMatchMode, 2
.
.
ControlSetText,MozillaWindowClass1,javascript:document.links[1].focus()`;,Mozilla |
However no joy. When I try using IE and Edit2 as the control it works. Is there something special that FF needs? |
|
| Back to top |
|
 |
Helpy Guest
|
Posted: Wed Jun 06, 2007 10:37 am Post subject: |
|
|
Firefox windows are opaque, it doesn't use standard Windows control, so you have two options:
- Use a shortcut key like Ctrl+L to go to the address bar, then send the JS;
- Use the Link Widgets extension, it is very handy to navigate such site. |
|
| Back to top |
|
 |
atnbueno
Joined: 24 Mar 2007 Posts: 26
|
|
| Back to top |
|
 |
Helpy Guest
|
Posted: Wed Jun 06, 2007 3:55 pm Post subject: |
|
|
| Accesskeys are alas underused by webmasters, this is useless if the page doesn't have them... |
|
| Back to top |
|
 |
wakewatcher
Joined: 15 Jul 2006 Posts: 139
|
Posted: Wed Jun 06, 2007 5:20 pm Post subject: |
|
|
They are my webpages so I can add the AccessKeys to my scripts. (Obviously I'm not much of an html guru either. ) Thanks for the help. |
|
| Back to top |
|
 |
Helpy Guest
|
Posted: Wed Jun 06, 2007 5:56 pm Post subject: |
|
|
Ah, I missed the part where you indicate you can modify the pages!
Sorry.
Good think, it is nice for other users as well.
Don't forget the link metadata too... |
|
| Back to top |
|
 |
|