The behaviour of the document elements can be defined by
The behaviour of the document elements can be defined by Correct Answer Registering appropriate event handlers
The JavaScript program can define the behavior of document elements by registering appropriate event handlers.