HTML DOM ইনপুট সাবমিট টাইপ প্রপার্টি ইনপুট এলিমেন্ট এর টাইপ="সাবমিট" এর সাথে যুক্ত। এটি সর্বদা ইনপুট সাবমিট উপাদানের জন্য জমা ফেরত দেবে।
সিনট্যাক্স
সাবমিট টাইপ প্রপার্টি −
এর সিনট্যাক্স নিচে দেওয়া হলsubmitObject.type
উদাহরণ
আসুন সাবমিট টাইপ প্রপার্টি −
এর একটি উদাহরণ দেখি<!DOCTYPE html>
<html>
<body>
<h1>Input range type Property</h1>
<form>
VOLUME <input type="range" id="RANGE1" name="VOL">
</form>
<p>Get the above input element type by clicking the below button</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" বোতামে ক্লিক করলে -
