topical media & game development

talk show tell print

professional-javascript-09-StoppingEventPropagationExample.htm / htm

  <html onclick="alert('html')">
          <title>Stopping Event Propagation Example</title>
          <script type="text/javascript" src="detect.js"></script>
          <script type="text/javascript">
              function handleClick(oEvent) {
                  if (isIE) {
                      oEvent.cancelBubble = true;
                  } else {
      <body onclick="alert('body')">
          <input type="button" value="Click Me" onclick="handleClick(event)" />

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.