Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    My reset button is ailing bad.

    I made this number picker and it worked fine if I reset the fields by clicking the "home" link or refresh the page. I installed a reset button and it clears all of the fields OK but then the number picker fails to start again unless I refresh the page or click the home link. What can I do to make this reset button refresh the page when it's clicked?
    Code:
    <input type="reset" value="RESET" />
    
    
    
    <br>
    <br>
    <b>NUMBER PICKER</b><br><br>
    	<label for="input">
                       <input type="text"   size="2"   style="border: 6px solid blue; text-align: center; font-family: impact, times new roman;  background-color: silver; "  id="input"></label><br><br>
    
                       <input type="button"  onclick="start_counter()"  value="START"><br><br>	
    	<input type="text" size="2"   style="border: 6px solid blue;   text-align: center; font-family: impact, times new roman;background-color: silver; " id="output1"/>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;"  id="output2"/><br><br>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output3"/>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output4"/><br><br>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output5"/>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output6"/><br><br>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;"  id="output7"/>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output8"/><br><br>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output9"/>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output10"/><br><br>
    	<input type="button" onmousedown="stop_counter()" size="5" value="STOP";/>
    </form>
    </center>
    </div>

  • #2
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by storkfmny View Post
    I made this number picker and it worked fine if I reset the fields by clicking the "home" link or refresh the page. I installed a reset button and it clears all of the fields OK but then the number picker fails to start again unless I refresh the page or click the home link. What can I do to make this reset button refresh the page when it's clicked?
    Code:
    <input type="reset" value="RESET" />
    
    
    
    <br>
    <br>
    <b>NUMBER PICKER</b><br><br>
    	<label for="input">
                       <input type="text"   size="2"   style="border: 6px solid blue; text-align: center; font-family: impact, times new roman;  background-color: silver; "  id="input"></label><br><br>
    
                       <input type="button"  onclick="start_counter()"  value="START"><br><br>	
    	<input type="text" size="2"   style="border: 6px solid blue;   text-align: center; font-family: impact, times new roman;background-color: silver; " id="output1"/>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;"  id="output2"/><br><br>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output3"/>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output4"/><br><br>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output5"/>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output6"/><br><br>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;"  id="output7"/>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output8"/><br><br>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output9"/>
    	<input type="text" size="2"   style="border: 6px solid blue;  text-align: center; font-family: impact, times new roman;background-color: silver;" id="output10"/><br><br>
    	<input type="button" onmousedown="stop_counter()" size="5" value="STOP";/>
    </form>
    </center>
    </div>
    Never mind, I did it
    Code:
    <form>
    <center>
    <form method="post">
    <input type="reset" value="RESET"
    onclick="window.location.reload()">
    </form>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •