Textarea.handleEvent()

JavaScript1.2+, JScript3.0+ Nav4+, IE4+ Syntax

							textarea.handleEvent(event)

Description

The handleEvent() method of the Textarea object invokes the handler for the event specified. This method was added in JavaScript 1.2.

Example

Listing 7.511 has a single text area. The script tells the browser that it wants to intercept all Click events and that it wants the myClickHandler function to handle them. Within this function, the handleEvent() method of the text area has been specified to handle the click.

When the user clicks anywhere on the page, the onClick event handler in the <textarea> tag calls a function to change the text in the text area. The change is nothing more than a simple number that is incremented counting ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.