Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Can a 'hotkey' be setup to 'focus' a particular browser window?
Old 05-07-2007, 03:09 PM Can a 'hotkey' be setup to 'focus' a particular browser window?
Novice Talker

Posts: 13
Trades: 0
Hello.

Can a 'hotkey' be setup to focus a particular browser window? If so, how to create it AND will it work for the major browser (IE, Netscape, Firefox, Opera, et al)?

Thanks.
mastermind is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-08-2007, 04:45 AM Re: Can a 'hotkey' be setup to 'focus' a particular browser window?
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Only windows you've named and created via Javascript can be accessed via Javascript and then you can trap keystrokes or whatever else you want. If you want something more powerful, you'd have to code an extension to the browser, but alt-tab switching (and the good-old clicking) usually suffices for most users.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 05-08-2007, 04:50 AM Re: Can a 'hotkey' be setup to 'focus' a particular browser window?
Novice Talker

Posts: 13
Trades: 0
Thanks for your reply.

The browser windows I'm referring to were created via JavaScript. How would I add the necessary keystrokes that are not overriding the browser defaults and those same keystrokes work the same in all major browsers for PC and Mac OS?

Thanks.
mastermind is offline
Reply With Quote
View Public Profile
 
Old 05-08-2007, 05:00 AM Re: Can a 'hotkey' be setup to 'focus' a particular browser window?
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Well, you'd have to choose a keystroke not used anywhere else (I don't know Macs) and which had keys on both keyboards. Then use a JS keystroke catcher to process access the window. Tips on manipulating windows can be found here: http://www.quirksmode.org/js/croswin.html
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 05-09-2007, 04:29 PM Re: Can a 'hotkey' be setup to 'focus' a particular browser window?
Novice Talker

Posts: 13
Trades: 0
I'll take a look. Thanks for the info.

Take care.
mastermind is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Can a 'hotkey' be setup to 'focus' a particular browser window?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15091 seconds with 12 queries