Get the related element of the element that triggered an onfocus event:
The relatedTarget property returns the element related to the element that triggered the focus/blur event.
This property is read-only.
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
relatedTarget | Yes | 9.0 | 24.0 | Yes | Yes |
Return Value: | A reference to the related element, or null if there is no related element |
---|---|
DOM Version: | DOM Level 3 Events |