javascript Window.event help

This is a discussion on "javascript Window.event help" within the JavaScript Forum section. This forum, and the thread "javascript Window.event help are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 10th, 2007, 01:22
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

  #2 (permalink)  
Old Apr 10th, 2007, 02:34
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: javascript Window.event help

Yes, it's used to see whether the function is supported by that browser.
Reply With Quote
  #3 (permalink)  
Old Apr 10th, 2007, 05:18
New Member
Join Date: Apr 2007
Location: fgfgf
Age: 32
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: javascript Window.event help

Quote:
Originally Posted by Ryan Fait View Post
Yes, it's used to see whether the function is supported by that browser.
You mean in this case

if(window.event)

is to check whether window.event is supported by browser?
Reply With Quote
  #4 (permalink)  
Old Apr 10th, 2007, 13:31
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: javascript Window.event help

Indeed....
Reply With Quote
Reply

Tags
windowevent

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open another new window from javascript window thehermitage JavaScript Forum 10 Jan 27th, 2008 19:42
javascript to capture event for restore down or maximize jadeite100 JavaScript Forum 0 May 30th, 2007 20:21
How to capture the event when a popup window box is resize jadeite100 JavaScript Forum 1 May 30th, 2007 00:38
Javascript to catch browser/plugins event le duc bao JavaScript Forum 0 May 10th, 2007 12:38
Javascript popup window with ASP madhuri.t Classic ASP 0 May 3rd, 2006 10:42


All times are GMT. The time now is 10:49.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43