Windows-Apps
Inhaltsverzeichnis reduzieren
Inhaltsverzeichnis erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

fromElement property

Sets or retrieves the object from which activation or the mouse pointer is exiting during the event.

Syntax

JavaScript

p = object.fromElement

 

Property values

Type: Object

the previous location of activation or the mouse pointer.

Remarks

The property is read-only in Microsoft Internet Explorer 4.0, and read/write in Microsoft Internet Explorer 5 and later.

Examples

In this example, the alert returns "mouse arrived" when the mouse pointer moves over the button.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/fromElement.htm


<script>
function testMouse(oObject) {
	if(!oObject.contains(event.fromElement)) {
		alert("mouse arrived");
	}
}
</script>
:
<button id=oButton onmouseover="testMouse(this)">Mouse Over This.</button>

See also

event

 

 

Anzeigen:
© 2017 Microsoft