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. 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 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] 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
Archived
This topic is now archived and is closed to further replies.