|
|
Drifting Designs Tutorials > > Coding > > JavaScript > > Up and Down BoxUp and Down Box You probably won't end up using this code any time during your life, but it's nice to know it exists anyway. This code allows a person to change the value in a textbox very easily, so it's helpful in forms and such. Enter the following code in your Body section of your page, where you want the text box to be. Where it says 1 after "value", you may change it to whatever number you want to start with. For example, in the example text box I gave near the middle of this page, the starting value is 10. Note: This code works for browsers Internet Explorer 4 and above, and NetScape 3 and above. I first learned the code from JavaScript Made Easy. Thanks so much to it! |
|
|||||||||||||