event--------------------------------------------------------------------------------DescriptionRepresents the state of an event, such as the element in which the event occurred, the state of the keyboard keys, the location of the mouse, and the state of the mouse buttons. The event object is available only during an event. That is, you can use it in event handlers but not in other code. You retrieve the event object by applying the event keyword to the window object. Although all event properties are available to all event objects, some properties might not have meaningful values during some events. For example, the fromElement and toElement properties are meaningful only when processing the onmouseover and onmouseout events. ExamplesThe following example checks whether a mouse click occurred within a link and prevents the link from being carried out if the SHIFT key is down. <HTML>
<HEAD><TITLE>Cancels Links</TITLE>
<SCRIPT LANGUAGE="JScript">
function cancelLink() {
    if (window.event.srcElement.tagName == "A" && window.event.shiftKey) 
        window.event.returnValue = false;
}
</SCRIPT>
<BODY onclick="cancelLink()">The following example displays the current mouse position in the browser's status window. <BODY onmousemove="window.status = 'X=' + window.event.x + ' Y=' + window.event.y">Note that in VBScript you cannot use the event keyword without applying it to the window keyword or an expression that evaluates to a window. PropertiesaltKey, button, cancelBubble, clientX, clientY, ctrlKey, fromElement, keyCode, offsetX, offsetY, reason, returnValue, screenX, screenY, shiftKey, srcElement, srcFilter, toElement, type, x, y Applies Towindow 

解决方案 »

  1.   

    to:gjd111686(数字金刚)
    这些资料从哪里找的?
      

  2.   

    你可以查阅MSDN中的IEREF.chm了解
      

  3.   

    http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/dhtml_reference_entry.asp
      

  4.   

    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_event.asp
      

  5.   

    window.event属于IE本身的对象资源.
      

  6.   

    1。window.event 是隐性的提供给事件处理器的实例。
    2。它的属性实在太多。
    3。它属于浏览器对象和文档对象,与js语言本身无关,可被js操作。
    4。还有很多这样的浏览器对象和文档对象,如external
    5。买一本js的参考书
      

  7.   

    可不可以 new 一个event?模拟鼠标点一下一个button