HTML <object> name Attribute

❮ HTML <object> tag

Example

<object name="obj1" data="img-boy.jpg" width="300" height="150"></object>

Meaning

The name attribute defines the name of the control so that scripting can access it.

Note: The id attribute should be used if possible.


Standard Syntax

<object	name="text">...</object>



Browser Support




Status







Attribute Values

Value Description
text (string) Gives the name of the input element.
❮ HTML <object> tag