Widget:V: Difference between revisions

Jump to navigation Jump to search
Gerald Chi (talk | contribs)
Created page with "<includeonly> <script type="text/javascript"> <html> <head> <script> var c=0; var t; var timer_is_on=0; function timedCount() { document.getElementById('txt').value=c; c=c+1..."
 
Gerald Chi (talk | contribs)
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<script type="text/javascript">
<html>
<html>
<head>
<head>
<script>
<script type="text/javascript">
var c=0;
var c=0;
var t;
var t;
Line 19: Line 17:
{
{
if (!timer_is_on)
if (!timer_is_on)
  {
{
  timer_is_on=1;
timer_is_on=1;
  timedCount();
timedCount();
  }
}
}
}
</script>  
</script>  
</head>
</head>
<body>
<body>
<form>
<form>
<input type="button" value="Start count!" onClick="doTimer()">
<input type="button" value="Asystole" onClick="timedCount()">
<input type="text" id="txt">
<input type="text" id="txt">
</form>
</form>
<p>Click on the button above. The input field will count forever, starting at 0.</p>
</body>
</body>
</html>
</html>
</script>
<form> 
<input type="button" onclick="hello()" value="Asystole"/>
</form>
</includeonly>
</includeonly>

Latest revision as of 21:05, 28 November 2013