<HTML xmlns = "http://www.w3.org/1999/xhtml"> <br/> <pead> <br/> <title> JavaScript event object application instance </title> <br/> <MCE: script Type = "text/JavaScript"> <! -- <Br/> function f (e) {// if no parameter is specified, it is invalid in Firefox <br/> E = E | event; // event object if not specified <br/> C = E. srcelement | e.tar get; // The Event source IE is the target of srcelement firefox <br/> alert (C. tagname); // Tag Name of the element that triggers the event, such as input or a <br/> alert (E. type); // click <br/> If (E. shiftkey) Alert ("shift at the same time"); <br/> alert (E. screenx + '|' + E. screeny); // The mouse position on the display <br/> alert (E. clientx + '|' + E. clienty); // coordinates of the area displayed by the mouse on the page <br/>}</P> <p> // --> </MCE: SCRIPT> <br/> </pead> <br/> <body> <br/> <input type = "button" onclick = "F (event ); "value =" OK "/> <br/> <a href = ''target =" _ blank "onmouseover =" F (event ); "> over </a> <br/> </body> <br/> </ptml>