Skip to content
Related Articles

Related Articles

Improve Article

HTML | DOM InputEvent inputType Property

  • Last Updated : 18 Jan, 2019

The inputType property is used to know the type of change that is made to a particular input field or any other editable content by the event. It is a read-only property.



Return Value: It returns a string which indicates the type of input entered.


<!DOCTYPE html>
    <title>DOM InputEvent inputType Property</title>
<body style="text-align:center">
    <h1 style="color: green;">
    <h2>DOM InputEvent inputType Property</h2>
    <textarea rows="2" id="myInput" 
    <p>Input Type: <span id="p"></span></p>
        function Geeks(event) {
            document.getElementById("p").innerHTML = 


Supported Browsers: The browser supported by inputType Property are listed below:

  • Apple Safari
  • Google Chrome 60.0
  • Firefox Not supported
  • Opera 47.0
  • Internet Explorer Not supported

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :