mozilla
Your Search Results

    Window.onmouseover

    Summary

    An event handler for the mouseover event on the window.

    Syntax

    window.onmouseover =funcRef;
    

    Parameters

    • funcRef is a reference to a function.

    Example

    window.onmouseover = doFunc;
    
    <html>
    <head>
    
    <title>onmouseover test</title>
    
    <style type="text/css">
    .my_box { border: 1px solid red; }
    </style>
    
    <script type="text/javascript">
    
    window.onmouseover = mouseover;
    
    function mouseover()
    {
     alert("mouseover event detected!");
    }
    </script>
    </head>
    
    <body>
    <div class="my_box">
    <p>move the mouse pointer to this div element,<br />
    or onto the status bar and back into the main window< br />
    to fire the mouseover event.</p>
    </div>
    </body>
    </html>
    

    Notes

    The mouseover event is raised when the mouse pointer moves over the current element (in this case the window itself).

    Specification

    Not part of specification.

    Document Tags and Contributors

    Tags: 
    Contributors to this page: Sheppy, fscholz, SphinxKnight, LibreGeekingKid, Gokhanege, Rappo, Jabez, teoli
    Last updated by: fscholz,
    Hide Sidebar