nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

Settare event.altKey ?

Von: HyP (info@127.0.0.1) [Profil]
Datum: 02.07.2008 14:56
Message-ID: <486b7af5$0$35960$4fafbaef@reader2.news.tin.it>
Newsgroup: it.comp.lang.javascript
Ciao,

ho una funzione costruita così:

function switchKey(event)
{
if (event.altKey)
if (event.keyCode=I)
{
...bla bla bla...
}
}


Se volessi richiamere il "bla bla bla" ??
Ho provato a scrivere qualcosa tipo:

var e=window.event;
e.altKey=true;
e.keyCodeI;
switchKey(e);


ma l'assegnazione di e.altKey mi provoca errore....
Qualche altra soluzione ?

Grazie,
HyP



[ Auf dieses Posting antworten ]

Antworten