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.
|
|
|
|
|
![]() |
||
javascript Window.event help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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? |
|
|
|
|||
|
Re: javascript Window.event help
Quote:
if(window.event) is to check whether window.event is supported by browser? |
![]() |
| Tags |
| windowevent |
| Thread Tools | |
|
|
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 |