Skip to content
Related Articles

Related Articles

HTML DOM Input Email list Property

View Discussion
Improve Article
Save Article
  • Last Updated : 25 Aug, 2022
View Discussion
Improve Article
Save Article

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


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

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


<!DOCTYPE html>
    <title> HTML DOM Input Email list Property</title>
<body style="text-align:center;">
    <h1 style="color:green">
    <h2>DOM Input Email list property</h2>
    E-mail: <input type="email" id="email"
        list="email_list" name="myGeeks"
    <datalist id="email_list">
        <option value="" />
        <option value="" />
        <option value="" />
        <option value="" />
        <option value="" />
    <button onclick="btnclick()">
        Click Here!
    <p id="paraID" style="font-size:20px;color:green;"></p>
    <!-- Script to return Input Email list Property -->
        function btnclick() {
            var em = document.getElementById("email");
            document.getElementById("paraID").innerHTML = em;



Supported Browsers:

  • Google Chrome 5
  • Edge 12
  • Mozilla Firefox
  • Opera 11
  • Safari

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!