Java script simple 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/20
            22:41 UTC
        
        
        Read the original article
        Hit count: 516
        
Sorry for my bad English! I have got one question.
Why when i click on the button at second time, Occurs nothing? But at first click everything is good!
<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