GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

CharacterBoundsUpdateEvent: CharacterBoundsUpdateEvent() constructor

CharacterBoundsUpdateEvent API

CharacterBoundsUpdateEvent API

The **`CharacterBoundsUpdateEvent()`** constructor returns a new CharacterBoundsUpdateEvent object.

## Syntax

```js-nolint
new CharacterBoundsUpdateEvent(type)
new CharacterBoundsUpdateEvent(type, options)
```

### Parameters

- `type`
- : A string representing the type of the event. Possible values: `"characterboundsupdate"`.
- `options`
- : An optional object with the following properties:
- `rangeStart`
- : A number to set the offset of the first character within the editable text region which this event applies to.
- `rangeEnd`
- : A number to set the offset of the last character within the editable text region which this event applies to.

## Specifications

## Browser compatibility

## See also

- The CharacterBoundsUpdateEvent interface it belongs to.

source: MDN Web Docs mirror · page

Cite this

"CharacterBoundsUpdateEvent: CharacterBoundsUpdateEvent() constructor". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/CharacterBoundsUpdateEvent/CharacterBoundsUpdateEvent

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·