This code seems to work in firefox and chrome but doesn't work in IE.
It uses prototype's Event.observe to respond to a click anywhere in
the window with an alert message.

Anyone know how to make it work for IE (and the other browsers)?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://">
<html xmlns=""; xml:lang="en" lang="en" >
<title>Click Test</title>
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript">
  Event.observe(window, 'click', function() {alert("clickety!");});
<h1>Click Test</h1>
You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to