Open In App

HTML DOM Input Color list Property

Last Updated : 27 Jul, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

The input color list property in HTML DOM is used to return a reference to the datalist element that contains an input color field.

Syntax:

colorObject.list.id

Return Value: It returns a string value that represents the value of the id attribute of the datalist element.

Example: Below HTML code is used to return the input color list property.

Output: 

 

Supported Browsers:

  • Google Chrome 20
  • Edge 14
  • Firefox 29
  • Opera 12
  • Safari 12.1
     

Article Tags :

Similar Reads