View Single Post
  #1 (permalink)  
Old Apr 10th, 2007, 01:22
trylah trylah is offline
New Member
Join Date: Apr 2007
Location: fgfgf
Age: 32
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
javascript Window.event help

I am a javascript beginner. I do not what this code
mean? Plz explain to me.

'-------------------------------
var key;
if (window.event)
key = window.event.keyCode;
'-----------------------------
what i do not understand is this line:
if (window.event)

Is it in javascript everytime an object is put inside
if syntax

example:
if(object)

Is this used to check whether the object exist or not?
Am I correct?


Reply With Quote