JavaScript DHTML/Event onMethod/onLoseCapture

Материал из Web эксперт
Перейти к: навигация, поиск

"onLoseCapture" Example

    
<head>
</head>
<body onload="captureMode.setCapture()" 
      onclick="captureMode.releaseCapture()">
    <div id="captureMode" onlosecapture="alert("Mouse capture terminated.")">
    <p>Mouse capture is currently turned on. 
       To terminate mouse capture mode, click this page!</p>
</div>
</body>