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

App下載
首頁(yè)javascriptformJavascript Form - 如何獲取表單名稱值

Javascript Form - 如何獲取表單名稱值

我們想知道如何獲取表單名稱值。


<html>
    <body>
    <script language="JavaScript">
    function showName(){
        console.log("Form Name is: " + document.form1.name);
    }
    </script>
    <form name ="form1" >
        Dummy input text box.
        <input type= "text" size="15">
        <br><br>
        Click on the button to get the name of the form
        <input type="button" value="click me" onclick='showName()'>
    </form>
    </body>
</html>