Simple Javascript question

Posted by butteff on Stack Overflow See other posts from Stack Overflow or by butteff
Published on 2010-03-20T22:31:23Z Indexed on 2010/03/21 0:01 UTC
Read the original article Hit count: 351

Filed under:
|
|

When I click on the button, the first time, everything works fine, but the second time, nothing happens. Why is that?

<form name="alert"><input type="text" name="hour"><input type="text" name="min"><input type="button" value="ok" onclick="budilnik(this.form)">

<script type="text/javascript">
function budilnik(form)
{

budilnik=1;
min=form.min.value;
hour=form.hour.value;
alert (min+' '+hour+' '+budilnik);

}
</script>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about button