矮窮挫變高富帥的JS

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Email" CONTENT="798033502@qq.com">
  <META NAME="Author" CONTENT="MXi4oyu">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
  <script type="text/javascript">
   function mydome()
   {
    var inputs = document.getElementsByTagName("input");
 for (var i=0;i<inputs.length;i++ )
 {
  var e = window.event.srcElement;
 
    e.value="高富帥";
 
 }
   }
  </script>
 </HEAD>

 <BODY>
  <input type="button" value="矮窮挫" onclick="mydome()" />
  <input type="button" value="矮窮挫" onclick="mydome()" />
  <input type="button" value="矮窮挫" onclick="mydome()" />
  <input type="button" value="矮窮挫" onclick="mydome()" />
  <input type="button" value="矮窮挫" onclick="mydome()" />
  <input type="button" value="矮窮挫" onclick="mydome()" />
 </BODY>
</HTML>

 

You May Also Like