script-handle-03-b

script-handle-03-b This test validates basic support for the mouse events defined in SVG. Mouse event handlers test. Target Use the target to trigger events onmousedown onmouseup onclick function onEvent(evt, indicatorId){ // Get Document var target = evt.target; var doc = target.ownerDocument; // Mark test as passed var testPassed = doc.getElementById(indicatorId); testPassed.setAttribute('visibility', 'hidden'); } $Revision: 1.3 $ raster image of script-handle-03-b

Tests basic mouse event handlers.

The test shows a target that can be used to generate the various kinds of mouse and keyboard events supported in SVG. Below the target, the list of events is shown with red markers next to each.

If the test passes, all the markers should have turned to green after the events have been triggered on the target. If any event has not triggered, its marker will remain red.