Possible Duplicate:
Javascript Error in FireFox Not in IE and Chrome
i have a JavaScript function which is in my Javacaleder.js file for Calender. This calender works fine in IE and chrome but not working in FF. It shows error in Error console.. " Event is not defined " It shows error in event.clientX; line below is the function..any help is appreciated.. below function is called like this...
objDiv.style.left = GetControlLeftPosition_jScript() + "px";
function GetControlLeftPosition_jScript() {
var controlLeft = event.clientX;
var pageWidth = document.body.clientWidth;
var spaceinRight = parseInt(pageWidth) - parseInt(controlLeft);
if (spaceinRight > 220) {
return controlLeft
}
else {
return parseInt(pageWidth) - 220;
}
}