code: function _eventLogger(element)
      {
          var events = [
              'MSPointerDown',
              'MSPointerUp',
              'MSPointerCancel',
              'MSPointerMove',
              'MSPointerOver',
              'MSPointerOut',
              'MSPointerEnter',
              'MSPointerLeave',
              'MSGotPointerCapture',
              'MSLostPointerCapture',
              'pointerdown',
              'pointerup',
              'pointercancel',
              'pointermove',
              'pointerover',
              'pointerout',
              'pointerenter',
              'pointerleave',
              'gotpointercapture',
              'lostpointercapture',
              'touchstart',
              'touchmove',
              'touchend',
              'touchenter',
              'touchleave',
              'touchcancel',
              'mouseover',
              'mousemove',
              'mouseout',
              'mouseenter',
              'mouseleave',
              'mousedown',
              'mouseup',
              'focus',
              'blur',
              'click',
              'webkitmouseforcewillbegin',
              'webkitmouseforcedown',
              'webkitmouseforceup',
              'webkitmouseforcechanged'
          ];
  
          function report(e)
          {
              console.log("event logger [" + e.type + "]", e, element);
          }
  
          for (var i = 0; i < events.length; i++)
              element.addEventListener(events[i], report, false);
      }
docs: var webUIApp = (Windows && Windows.UI) ? Windows.UI.WebUI.WebUIApplication : null; if (webUIApp) { webUIApp.addEventListener("suspending", _onSuspending); webUIApp.addEventListener("resuming", _onResuming); }