event not working in netscape, firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yogarajan
    New Member
    • Apr 2007
    • 115

    event not working in netscape, firefox

    Hi friend

    Code:
    var xPos = document.forms[0].MouseX.value;
    var yPos = document.forms[0].MouseY.value;
    
    showPopup(event,xPos+200 ,yPos );  
    
    
    function showPopup (eventObj,x,y) {
        
       alert(eventObj);
    }
    here IE return object

    but netscape and firefox return false

    why

    my code support all browser

    pls solve this problem
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    I think it's because Mozilla doesn't use the window.event object. see this article for more details.

    Comment

    Working...