< BR>This is a button..



Here's the code...

< FORM >

< INPUT TYPE="BUTTON" >

< /FORM >


...not to exciting, uhh.
You need to add "attributes" to make them come to life!!
It's the "attributes" that tell your buttons to do stuff.
Here's two attributes that will make a button do some things,...
VALUE=
ONCLICK=


Here's the code...

< FORM >

< INPUT TYPE="BUTTON" VALUE="MY-BUTTON" ONCLICK="alert('Buttons are cool!');">

< /FORM >


Now that's a little better!
Now the tech stuff...
The first attribute you added, wasVALUE=
VALUE=
is what the button will read on it.
I put "MY-BUTTON", but change it to whatever.
The second attribute, you added wasONCLICK=
ONCLICK=
tells it to do something, in this case it was to "alert", or display a "pop-up".
Simple enough, right?
Use the same attributesto do something else...
     

Here's the code...

FORM >

< INPUT TYPE="BUTTON" VALUE="WOW" ONCLICK="document.bgColor='#686868'">
< INPUT TYPE="BUTTON" VALUE="THAT WAS COOL!" ONCLICK="document.bgColor='000000'">

< /FORM >


That was the same code, doing a differant function.
Here's an other TYPEof button,.. TYPE="RADIO"
It does the same thing as, TYPE="BUTTON"
It's just a differant kind of button.

                   

Here's the code...

< FORM >
< INPUT TYPE="RADIO" ONCLICK="alert('radio buttons are cool too!');">

< INPUT TYPE="RADIO" ONCLICK="document.bgColor='#686868'">

< INPUT TYPE="RADIO" ONCLICK="document.bgColor='#000000'" >

< INPUT TYPE="RESET">

< /FORM >


Cool uhh! : -)
Want to add some attributes to the< FORM > tag?
Well you must, if your still reading this.!


Here's the code...

<FORM METHOD="POST" ACTION="https://members.tripod.com/~W_NY _DECKS/sound/SPMCATIS.mid" >

< INPUT TYPE="SUBMIT" VALUE="TUNES">

< /FORM >





©  -=Nook=-