I get an error message "undefined" for the following script..![]()
any help?
thanks
VB Code:
<html><head> <script> var h=0; function yaz() { for(h=0;h<=6;h++) { var rno=(Math.floor(Math.random()*50)+1); document.getElementById('oda').innerHTML=rno[h]; } } </script></head><body> <div id="oda">......</div> <form> <input type=button value="print the rand nums" onClick="yaz()"> </form></body></html>




Reply With Quote