国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

App下載
首頁javascriptformJavascript Form - 如何獲取與密碼框相關(guān)聯(lián)的類型屬性...

Javascript Form - 如何獲取與密碼框相關(guān)聯(lián)的類型屬性...

我們想知道如何獲取與密碼框相關(guān)聯(lián)的類型屬性。...


    <html>
    <body>
    <script language = "JavaScript">
    function showFormName(){
         var name = document.forms[0].name;
         console.log("The name of the form is: " + name);
    }
    </script>
    <form name="form1">
    This text box belongs to a form.
    <input type="text" name="street">
    <br><br>
    Click on the button to get the name of the form.
    <br>
    <input type="button" value="Get Form name" onClick='showFormName()'>
    </form>
    <form name="form2">
    This is the second form in the document. It contains a FileUpload object.
    <input type="file" name="uploadbox" size="25">
    </form>
    </body>
    </html>