Geolocation test page

This page runs the following script as per the specs from Developer.Mozilla.org's Using geolocation

   function successCallback(position)
   {
      var temp =
      document.createTextNode
      (
         'Lat = ' + position.coords.latitude + ', Long = ' + position.coords.longitude
      );
      document.body.appendChild(temp);
   }
   
   function errorCallback()
   {
      var msg;
      switch(err)
      {
         case 0:  msg = 'Oops... "Unknown Error"'; break;
         case 1:  msg = '"Permission denied"';     break;
         case 2:  msg = '"Position unavailble"';   break;
         case 3:  msg = '"Timeout"';               break;
         default: msg = 'debug message';
      }
      alert
      (
         'from errorCallBack in this file: geolocation storage failed\n' + msg
      );
   }
   
   window.onload =
   function()
   {
      navigator.geolocation.getCurrentPosition
      (
         successCallback,
         errorCallback
      );
   };

All sorts of stuff should be happening in your browser window when this page loads.

If nothing happened [or your iThingie™®© spontaneously exploded] your browser doesn't do geolocation.

Sorry for the mess.