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

App下載
首頁javascripttext_inputJavascript Form - 如何get和設(shè)置文本輸入字段的值,將輸入轉(zhuǎn)換為大寫...

Javascript Form - 如何get和設(shè)置文本輸入字段的值,將輸入轉(zhuǎn)換為大寫...

我們想知道如何get和設(shè)置文本輸入字段的值,將輸入轉(zhuǎn)換為大寫。...

  
<html>
<head>
  <script type="text/javascript">
    function showWindow() {
      var txt = document.form1.stringField.value;

      if (document.form1.subBox.checked) txt = txt.sub();
      if (document.form1.supBox.checked) txt = txt.sup();

      objWindow = window.open("", "","width=600,height=300");
      objWindow.document.write(txt);
      objWindow.document.close();
  }
  </script>
</head>
<body>
  <form method="post" name="form1" action="null">
      String:<input type="text" size="40" maxlength="256" name="stringField" />
      Style:
      <input type="checkbox" name="subBox" value="ON" />Sub
      <input type="checkbox" name="supBox" value="ON" />Sup
    <input type="button" name="Show" value="Show" onclick="showWindow()" />
  </form>
</body>
</html>