wsj lab:: JavaScript - get mouse cursor's position

This is to demonstrate the information of mouse cursor's position retrieval. Since I only test this function on IE and Firefox, The summary is as the following:
  1. IE supports them all
  2. Firefox supports event.clientX(Y) and event.screenX(Y) only
  3. for Firefox, event object must be passed from the caller as a parameter
» 翻中文
[x]
這頁是在 demo 如何讀取游標的位置。 因為我只在 IE 和 Firefox 上測過,所以摘要如下:
  1. IE 支援全部四種
  2. Firefox 只支援 event.clientX(Y) 和 event.screenX(Y)
  3. Firefox 裡,event 物件必須以參數的方式傳進 function 才讀得到