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

App下載
首頁javascriptformJavascript Form - 如何檢查表單目標(biāo)屬性

Javascript Form - 如何檢查表單目標(biāo)屬性

我們想知道如何檢查表單目標(biāo)屬性。

<html>
    <body>
    <script language="JavaScript">
    function show(){
        var tar = document.form1.target;
        if(tar == "_self"){
          console.log("this window");
        } else{
          console.log("The target has not been specifically specified");
        }
    }
    </script>
    <form name="form1" action="post" target="_self">
    <br><br><br>
    <input type="button" value="submit" onClick='show()'>
    </form>
    </body>
</html>