Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE HTML>
<html lang="en">
  <head>
    <style>
      body {
        margin: 0px;
        padding: 0px;
      }
    </style>
    <title>Example of dealing with mouse events in a canvas</title>
  </head>
  <body>
    <p>Check the JavaScript code and learn how to deal with mouse events properly.</p>
    <p>Click with different mouse buttons, move the mouse...</p>
    <canvas id="myCanvas" width="578" height="200"></canvas>
   
  </body>
</html
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
MichelBuffapro
0viewers