কম্পিউটার টিউটোরিয়াল

HTML DOM Legend form প্রপার্টি

ওভারভিউ

HTML DOM Legend form প্রপার্টি লেজেন্ড ট্যাগের জন্য এনক্লোজিং ফর্মের রেফারেন্স রিটার্ন করে।

সিনট্যাক্স

legendObject.form

উদাহরণ

Legend form প্রপার্টির উদাহরণ:

<!DOCTYPE html> <html> <head> <title>Legend form</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 id="Mid-Term"> <fieldset> <legend id="legendForm">Legend-form</legend> <label for="WeekSelect">Examination Week: <input type="week" value="2019-W36"> </label> <input type="button" onclick="showExamination()" value="What exams are in this week? "> <div id="divDisplay"></div> </fieldset> </form> <script>    var divDisplay = document.getElementById("divDisplay");    var legendForm = document.getElementById("legendForm");    function showExamination() {       divDisplay.textContent = 'Examinations: '+legendForm.form.id;    } </script> </body> </html>

আউটপুট

'What exams are in this week?' বাটনে ক্লিক করার আগে:

HTML DOM Legend form প্রপার্টি

'What exams are in this week?' বাটনে ক্লিক করার পর:

HTML DOM Legend form প্রপার্টি

  1. HTML DOM Form action প্রোপার্টি

  2. HTML DOM Form target প্রপার্টি

  3. HTML DOM Textarea form প্রোপার্টি: টেক্সটএরিয়ার ফর্ম খুঁজে বের করা

  4. HTML DOM Object form প্রপার্টি