[JS] Keypress scriptje

Pagina: 1
Acties:
  • 43 views sinds 30-01-2008

  • bl00dy
  • Registratie: September 2002
  • Laatst online: 28-08 10:21
Hallo allen,

Ik heb een klein scriptje geschreven om te kijken of een bepaalde toets ingedrukt wordt en dan een actie te ondernemen. Nu is mijn vraag hoe ik de nieuwe link kan openen in een ander venster, ik kan hem nu enkel openen in het huidige document.

<!-- <script language="JavaScript1.2">
var hotkey=109
var destination="http://mail.yahoo.com/"
if (document.layers)
document.captureEvents(Event.KEYPRESS)
function backhome(e){
if (document.layers){
if (e.which==hotkey)
document.location=destination
}
else if (document.all){
if (event.keyCode==hotkey)
window.location=destination
}
}
document.onkeypress=backhome
Keypress.remove(e)
</script> -->

Groet,
Bl00dy

The only true wisdom is in knowing you know nothing - Socrates


  • McVirusS
  • Registratie: Januari 2000
  • Laatst online: 12:21
www.irt.org > javascript > faq :)

window.open(destination);

Suc6 :)

Dit topic is gesloten.