lastEventId property (event)
Returns the identifier of the last event in case of onmessage events.
Note: The lastEventId property is supported in Firefox from version 3 and in Opera from version 10.6.An onmessage event occurs when the postMessage method sends a message to the current window. The lastEventId property is not filled by the postMessage method.
If you want to set the lastEventId property, then create an event object with the createEvent method with a type of 'MessageEvent', initialize it with the initMessageEvent method and dispatch it with the dispatchEvent method.For further details, see the pages for the postMessage method and the onmessage event.
You can find the related objects in the Supported by objects section below.
This property is read-only.
String that retrieves the identifier of the last event.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the lastEventId property:
Did you find this example helpful?
User Contributed Comments