HTML DOM Input Submit type प्रॉपर्टी type="submit" वाले इनपुट एलिमेंट से जुड़ी होती है। यह इनपुट सबमिट एलिमेंट के लिए हमेशा "submit" वापस करती है।
सिंटैक्स
Submit type प्रॉपर्टी का सिंटैक्स:
submitObject.type
उदाहरण
Submit type प्रॉपर्टी का एक उदाहरण देखते हैं:
<!DOCTYPE html> <html> <body>
<h1>Input range type Property</h1>
<form>
VOLUME <input type="range" id="RANGE1" name="VOL">
</form>
<p>नीचे दिए गए बटन पर क्लिक करके ऊपर वाले इनपुट एलिमेंट का प्रकार प्राप्त करें</p>
<button type="button" onclick="rangeType()">GET Type</button>
<p id="Sample"></p>
<script>
function rangeType() {
var P = document.getElementById("RANGE1").type;
document.getElementById("Sample").innerHTML = "The type for the input field is: " + P;
}
</script>
</body> </html>
आउटपुट
यह निम्नलिखित आउटपुट उत्पन्न करेगा:

"GET Type" बटन पर क्लिक करने पर:
