ওভারভিউ
HTML DOM Input Week type প্রপার্টি ইনপুট উইকের টাইপ রিটার্ন/সেট করে।
সিনট্যাক্স
স্ট্রিং মান রিটার্ন করা
inputWeekObject.type
type সেট করা
inputWeekObject.type = stringValue
স্ট্রিং মানগুলো
| stringValue | বিবরণ |
|---|---|
| week | ইনপুট টাইপ হলো week |
| datetime-local | ইনপুট টাইপ হলো datetime-local |
| checkbox | ইনপুট টাইপ হলো checkbox |
| text | ইনপুট টাইপ হলো text |
উদাহরণ
Input Week type প্রপার্টির উদাহরণ:
<!DOCTYPE html> <html> <head> <title>Input Week type</title> <style> form { width:70%; margin: 0 auto; text-align: center; } * { padding: 2px; margin:5px; } input[type="button"] { border-radius: 10px; } </style> </head> <body> <form> <fieldset> <legend>Week-type</legend> <label for="WeekSelect">Event: <input type="week" id="WeekSelect"> </label> <input type="button" onclick="getTypeOfInput()" value="What type of input?"> <div id="divDisplay"></div> </fieldset> </form> <script> var divDisplay = document.getElementById("divDisplay"); var inputWeek = document.getElementById("WeekSelect"); function getTypeOfInput() { divDisplay.textContent = 'Type of input Expected: '+inputWeek.type; } </script> </body> </html>
আউটপুট
'What type of input?' বাটনে ক্লিক করার আগে:

'What type of input?' বাটনে ক্লিক করার পর:
