attachEvent() (Method)

A means of attaching events to windows and documents.


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, <STYLE>, Document.attachEvent(), Document.detachEvent(), HTML Component, onContentReady, onDocumentReady, Window.detachEvent()

Refer to:



Wrox Professional JavaScript - page - 115

Wrox Professional JavaScript - page - Page