Difference between revisions of "Test"

From LNTwww
(Die Seite wurde geleert.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<html>
+
 
<head>
 
<script type="text/javascript">
 
function foobar(val1, val2) {
 
  var tst = document.getElementById("tst");
 
  console.log(val1);
 
  if (val1 &&  val2) {
 
    tst.innerHTML = "true";
 
  }
 
  else {
 
    tst.innerHTML = "false";
 
  }
 
};
 
</script>
 
</head>
 
<body>
 
<button class="button" onclick="foobar(false, false)">Test (false false)</button>
 
<button class="button" onclick="foobar(false, true)" >Test (false true)</button>
 
<button class="button" onclick="foobar(true,  false)">Test (true false)</button>
 
<button class="button" onclick="foobar(true,  true)" >Test (true true)</button>
 
<span id="tst">nothing so far</span>
 
</body>
 
</html>
 

Latest revision as of 16:48, 9 October 2017