<html>

  <head>
    <meta http-equiv="content-type" content="text/html;chars-
       et=iso-8859-1">
    <title>DHTML for the WWW | Creating a Global Event</titl-
       e>
    <script src="findDOM.js"></script>
    <script><!--

var isNS = 0;
var isIE = 0;

if (navigator.appName.indexOf('Netscape') != -1) {isNS = 1;}
else { 
if (navigator.appName.indexOf('Microsoft Internet Explorer')-
    != -1) {isIE = 1;}
}

function defaultEvents() { 
   if (isNS) {
         document.captureEvents(Event.CLICK || Event.MOUSEOU-
            T) 
   }
   if (isDHTML){
  document.onclick = errorOn;
  document.onmouseout = validate;
  }
}

function errorOn() {
  alert ('Please do not click here again!')
}


function validate() {
  alert ('Where do you think you are going?')
}

// -->
</script>
  </head>
  <body onLoad="defaultEvents()">
        <img src="alice34.gif" width="409" height="480" bord-
           er="2">
  </body>

</html>