Jump to content


Photo

Return to a window on a key press


  • Please log in to reply
2 replies to this topic

#1 Thierry

Thierry
  • Members
  • PipPipPip
  • Advanced Member
  • 85 posts
  • LocationNetherlands

Posted 05 September 2006 - 01:03 PM

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.
Have you tried....a reset?

#2 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 05 September 2006 - 01:30 PM

Nope, I don't think so, you'll just have to resort to good old <ALT>+<TAB>.

Rich
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#3 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 05 September 2006 - 02:57 PM

I'm not really good with JavaScript, but I think that you can use the focus() function. Something like:
blabla.document.focus();





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users