C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Tips » Visual Studio »

How to make window.event in javascript in Firefox


Posted Date: 08 Oct 2009    Resource Type: Tips    Category: Visual Studio
Author: PrashanthMember Level: Bronze    
Rating: 1 out of 5Points: 3



Hi,
Here am sharing the way how we get window.event in Firefox.
The general issue is we get proper object in IE Chrome, but we find issue in Fire fox.
So here is the way we need to handle for fire fox
just give "window.Event" instead of "window.event" for Firefox.( note that E is capital in event.)
Thats all it will work.


// sample code

e = e ? e : window.event; // this works fine in IE
// but in fire fox we need to explicitly give the event so the below code does it.

if(!e)
{
e = window.Event;
}

Hope this helps.

Thanks,
prashanth



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Javascript window.event call issue in firefox and its resolution  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Version Your Assemblies
Previous Resource: Transaction in ADO.Net
Return to Discussion Resource Index
Post New Resource
Category: Visual Studio


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use