L
Loony
I want to use a ctrlKey event in my script!
I have a code like this:
function hiLite(imgDocID, imgObjName) {
document.images[imgDocID].src = eval(imgObjName + ".src")
}
function KeyDown() {
Key1=event.ctrlKey //JavaScript shows this event is not defined
Key=event.keyCode
if ((String.fromCharCode(Key)=="q") && (Key1))
{
if ( self.document.newContract.do_DKT.checked==true )
{
self.document.newContrac.do_DKT.checked=false
hiLite('cha_r','bom2')
document.images["cha_r"].value=0
}
else
{
self.document.newContrac.do_DKT.checked=true
hiLite('cha_r','bom1')
document.images["cha_r"].value=1
}
}
and my Firefox Javascript console says that event: event.ctrlKey is not
defined, but MS IE works right!
The script is placed in my file not imported from any other source!
What should I do?
I have a code like this:
function hiLite(imgDocID, imgObjName) {
document.images[imgDocID].src = eval(imgObjName + ".src")
}
function KeyDown() {
Key1=event.ctrlKey //JavaScript shows this event is not defined
Key=event.keyCode
if ((String.fromCharCode(Key)=="q") && (Key1))
{
if ( self.document.newContract.do_DKT.checked==true )
{
self.document.newContrac.do_DKT.checked=false
hiLite('cha_r','bom2')
document.images["cha_r"].value=0
}
else
{
self.document.newContrac.do_DKT.checked=true
hiLite('cha_r','bom1')
document.images["cha_r"].value=1
}
}
and my Firefox Javascript console says that event: event.ctrlKey is not
defined, but MS IE works right!
The script is placed in my file not imported from any other source!
What should I do?