<html>
<head>
</head>
<input type="text"id="test" name="test"value="" size="37">
<input type="button"value="Button" onclick="onclickButton()">
<script language="JavaScript">
function onclickButton() {
varstr="";
for(var i=0; i<test.value; i++)
{
if(i%2!=0)
{
str+=i+",";
}
}
alert(str);
}
</script>
<body>
</body>
</html>
Comments
Dear victor, Please provide us with errors log. Thank you.
the program is not working
Leave a comment