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 calendar works fine in IE and chrome but not working in Firefox. 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;
}
}