Documentation? Well, it's pretty straitforward. Just look at the code a bit, and you'll figure it out. Here is your code:
<form name="myform" action="whatever.php" method="post">
<P>choose one or you'll sink!
<input type="submit" name="sink" value="sink">
<input type="submit" name="see" value="secret">
<input type="submit" name="swim" value="swim">
</form>
<script language="javascript" type="text/javascript">
<!--
function sinksubmit(){
document.myform.sink.click(); //Clicks the submit called "sink"
clearInterval(delay); //Stops the interval.
}
//Since there is no sleep() function, I had to improvise:
delay = window.setInterval("sinksubmit()", 10000);
//-->
</script>
Have a great day!
Hebrews 11:1-3
Now faith is being sure of what we hope for and certain of what we do not see.
This is what the ancients were commended for.
By faith we understand that the universe was formed at God's command, so that what is seen was not made out of what was visible.