Open map

This is a google map where you decide what to do when someone clicks on it. The short: You supply a little bit of javascript that will get executed on every mouse click as a CGI variable. Here are two examples, the first simply prints hello on every click, the second prints the location on which you clicked. To get a feeling, I've clearly shown the full URL.

  1. ?onClick=alert('hello')
  2. ?onClick=alert(loc.toString())

You can also type code into the text box below the map and then click Set.

There is a lengthier explanation here.