<title>Port B</title> <body onLoad= " for(var i=0;i<7;i++) document.forms[0].elements[i].checked=0x50&(2<<i) "> <form action=a> <script> for(var i=1;i<8;i++) document.write("B."+i+"<INPUT TYPE=checkbox><BR>") </script> <input type=submit value=Read> <input type=button value=Write onClick= " for(var v=400,i=0; i<7; v+=document.forms[0].elements[i].checked<<++i); top.location.href=v ">
|
Code:
Comments: