Widget:V: Difference between revisions
Jump to navigation
Jump to search
Gerald Chi (talk | contribs) mNo edit summary |
Gerald Chi (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<script> | <script> | ||
function | function timedText() | ||
{ | { | ||
document.getElementById('txt').value= | var x=document.getElementById('txt'); | ||
var t1=setTimeout(function(){x.value="2 seconds"},2000); | |||
var t2=setTimeout(function(){x.value="4 seconds"},4000); | |||
var t3=setTimeout(function(){x.value="6 seconds"},6000); | |||
} | } | ||
</script> | </script> | ||
<form> | <form> | ||
<input type="button" value=" | <input type="button" value="Status" onclick="timedText()" /> | ||
<input type="text" id="txt"> | <input type="text" id="txt" /> | ||
</form> | </form> | ||
</includeonly> | </includeonly> |