Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML | DOM InputEvent inputType Property

Improve Article
Save Article
  • Last Updated : 18 Jan, 2019
Improve Article
Save Article

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
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!