<script>
function show1()
{
var randomnumber=Math.floor(Math.random()*21);
var randomnumber1=Math.floor(Math.random()*31);
var randomnumber2=Math.floor(Math.random()*41);
var randomnumber3=Math.floor(Math.random()*51);
var randomnumber4=Math.floor(Math.random()*101);
document.form1.text4.value=randomnumber3;
document.form1.text3.value=randomnumber2;
document.form1.text2.value=randomnumber1;
document.form1.text1.value=randomnumber;
document.form1.text5.value=randomnumber4;
document.form1.text1.focus();
}
</script>
//calling on buttons of form to store values in text box (text1,text2,text3,text4,text5)
problem is that when i am calling above function on buttons it shows result in textbox but value autometically get refreshed.
can any one help me????????????????????????


LinkBack URL
About LinkBacks
Reply With Quote
by clicking the
button on their useful posts.