JavaScript Programmer’s Reference MouseEvent.metaKey (Property) A Boolean value

JavaScript Programmer’s Reference MouseEvent.metaKey (Property) A Boolean value that represents the state of the [meta] key. DOM level 2 JavaScript 1.5 Netscape 6.0 Availability: Property/method value type: JavaScript syntax: N Boolean primitive myMouseEvent.metaKey When an event is being processed, you may want to know the state of the [meta] key on the keyboard. This Boolean property returns true when the [meta] key is pressed and false when it is not. This property reflects the state of the [meta]key at the instant when the event was triggered. The user may have released the [meta] key in the meantime so you should not assume that if the [meta] key was pressed earlier on that it is still pressed when the event handler is being executed. Warnings: . The key may not always be labelled “META” on the keyboard. Property attributes: ReadOnly. MouseEvent.relatedTarget (Property) A related EventTarget object is referred to. DOM level 2 JavaScript 1.5 Netscape Navigator version 6.0 Availability: Property/method value type: JavaScript syntax: N EventTarget object myMouseEvent.relatedTarget The particular EventTargetreferred to depends on the event type and context. For example, the standard suggests this might be the object the mouse has just moved off when a mouseOver is being processed. The targetand relatedTargetproperty values would be exchanged vice versa if a mouseOut event were being processed. See also: EventTarget object Property attributes: ReadOnly. 1462

Leave a Reply