attachEvent() (Method)

A means of attaching events to windows and documents.

Availability:

JScript - 5.0
Internet Explorer - 5.0
Property/method value type:Boolean primitive
JavaScript syntax:IEattachEvent(anEventName, anEventHandler)
IEmyWindow.attachEvent(anEventName, anEventHandler)
Argument list:anEventHandlerA reference to an event handler function
anEventNameThe name of an event to be handled.

See also:.htc, <STYLE>, Document.attachEvent(), Document.detachEvent(), HTML Component, onContentReady, onDocumentReady, Window.detachEvent()

Refer to:

Window.attachEvent()

Cross-references:

Wrox Professional JavaScript - page - 115

Wrox Professional JavaScript - page - Page