Thierry Posted September 5, 2006 Share Posted September 5, 2006 Im using the event.keyCode so the use can switch between windows (three of them) of the website.This works fine while in one of the windows, but say Im typing in Word and I hit the key to switch, nothing happens.Ofcourse, this is because the keys only work in the <body onload> part of the pages, but I was wondering if its possible for the key combination to be used when not focused on one of the windows. Quote Link to comment https://forums.phpfreaks.com/topic/19760-return-to-a-window-on-a-key-press/ Share on other sites More sharing options...
HuggieBear Posted September 5, 2006 Share Posted September 5, 2006 Nope, I don't think so, you'll just have to resort to good old <ALT>+<TAB>.Rich Quote Link to comment https://forums.phpfreaks.com/topic/19760-return-to-a-window-on-a-key-press/#findComment-86349 Share on other sites More sharing options...
Daniel0 Posted September 5, 2006 Share Posted September 5, 2006 I'm not really good with JavaScript, but I think that you can use the focus() function. Something like: [code]blabla.document.focus();[/code] Quote Link to comment https://forums.phpfreaks.com/topic/19760-return-to-a-window-on-a-key-press/#findComment-86425 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.