I have following code to generate a transpert pop up for onchange event of drop down
Above code works fine for IE but in MOzilla it gives error "EVENT is not defined"
Please note: LINE 1 and LINE 2 are used to adjust position of window. If I remove it code works fine for all browsers but does not have a position that I want.
Please help
Code:
if (xmlHttp.readyState==4)
{
/* get the mouse left position */
var x = [B]event[/B].clientX + document.body.scrollTop + 360; // LINE 1
/* get the mouse top position */
var y = [B]event[/B].clientY + document.body.scrollTop + 330; // LINE 2
/* display the pop-up */
/* set the pop-up's left */
Popup.style.left = x;
/* set the pop-up's top */
Popup.style.top = y;
Popup.style.display="block";
document.getElementById("Popup").innerHTML=xmlHttp.responseText;
Please note: LINE 1 and LINE 2 are used to adjust position of window. If I remove it code works fine for all browsers but does not have a position that I want.
Please help
Comment