?a name="DESCRIPTION" con?="How to build a website,Fre?torials,?ite building,html,javasc??,free ed?,free templates" /> function boo??e(title, url){ if (document.all) window.external.AddFavorite(url, title); else i?indow.sideba?indow.sidebar.addPan?itle?l, "? ?r>

Web Designing Made Easy

&?;Pri?his Page

Make Your Home Page?an>?r> ?able> ? align="?er">
Add to F?rites Tell ?iend
? class="style1"> ?r> ?d valign="top" c?="contentsbg"> ? align="?er">Create Free ?���?���

?able?der="0" bgcolor="#1B5389">
?d he?="32" align="lef?alig?op" bgcolor="#1B5389">
?r>
?d no?="no?" bgcolor="#1B5389">
?p; ?d> ?d> ??ype=hidden name=u value=?p://www.webknowledge.com/ind?hp"> ??ype=hidden name=u value=?p://www.freewebknowledge.com/ind?hp"> td> ??ype="hidden" name="l?air" value="en|ja">
??ype="hidden" name="l?air" value="en|en">
?ut name="image" type="image" src="Im?/fr.gif"??ench" wi"18" height="12"?ace=2 bo?=0>
?ut n"image" type="image" src="Im?/de.gif"?="German" width="18" height="12"?ace=2 bo?=0> ?ut name="image" type="image" src="Im?/it.gif"??alia?idth="18" he?="12?pace=2 border=0>
?ut name="image" type="image" src="Im?/ko.gif"?="Korean" width="18" height="12"?ace=2 bo?=0>
?m action?tp://translate.google.co?anslate"?get="_top">
?ut name="image" type="image" src="Im?/ar.gif"??abic" width="18" height="12"?ace=2 bo?=0>
??ype="radio" name="sitesearch" value="" /> Web?d> This Site?d> ?r>
??ype="submit" nam??alue="Search" /> ??ype="hidden" name="f" value="1"> ??ype="hidden" name="o?alue="ISO-8859-1"> ?>

HTM?torial ? align="?">JavaSc??orial

CS?torial ? align="?">PHP/ASP

CGI T?ial

div align="left"> ?d width="100%" bgcolor="#376B99"> ? align="?er">Free FTP Tool

Free websites

Free Bul?

Free Templates

Free Logos

Free Ke?ds S?are

Free Web Tools

?d width="100%" bgcolor="#376B99"> ? align="?er">

?r> ?able> ? align="?er">?ong>Quick Links

? align="?er">

? ali?er">

Submit a Tutorial

Links

Free?ources ? align="?">Tran?e a ?age ?our Language

Earn m??h yo?ebsite

? align="?">Suggestions

META Tag Gen?or

HTML Enc?or

Check Site??ity

Menu Generator

? align="?">Ads ?ork

? align="?"> ? align="?"> ?>
?r> ?able>

&??>

?ong>ref="ind?hp">HomeHome?���ertise"Adve?e | Contact Us |Free?���ources Free Re?ces | Submit ?torial
?r align="center" valign=?" bgcolor="#376B99"> Usin?ttons for JavaSc?s ? align="?">H?o make a?ton react to a click?h javasc??an> ??le="padding:?; float: left">

?rite?? using buttons, ?ill ?t ne?o know h?o place ?tton on the page. To do ?, you will need ??he <FORM> tag?ound the?ton tag.?? an example ?he HTML ? will place ?tton on the page:

<FORM>? /> <INPU?pe="?on" ?e="Click Me" name="button1">? /> </FORM> ? will place ?tton on ? page, but if you click on it nothing will happen.... ?m>

? align="?">


  1. This creates a fo?o we can use a button.
  1. ? align="?"><INPUT> Th?ag a?? to create an input area of some kind.


This command decl???ut area to be a ?on.
< ? align="?">

  • ?e="Click Me"
    This will be the te?eople wi?ee on th?tton?ite ??? want yo??ors ?ee.

    ?>

  • name="?on1"
    ? can?e th?tton a name for ???ence and?sibly fo?e in??t.
  • Now, I know you don'??ant to make ?ons ? don't do anything, so l? loo? a j??t command th?ill make the bro? do something when a viewer clicks it:

    onClick=??ipt ?"

    Just place this command inside the INPUT tag you created the ??ith, like this:

    ? align="?">

    Now, ??ead the ? section, you saw how to add?t to the status bar using the on?eover command. Well,? can??e a ??o do this!

    <FORM>
    ?;INP?ype=?ton" valSee Some?t" name=?ton2" onClic?indo??='You clicked th?tton!'; ??rue">
    ?;/FORM>

    ? align="?">? cli?he button below and see the ? in the ?us bar at the bottom:

    ?> ?m>

    You can also all?our ?ers to change the ba?ound color of yo?age.??e the fo?ing command,?her than the window.?us command:

    ? align="?"> document.bgColor='c?'

    Just inse?his ?our ???? the onClick command, li?his:

    <FORM>
    <INPUT?e="butto?alue="Change to Yellow!" name="button3" onClick="document.bgColo?ellow'">? /> </FORM>

    Now you get the ?on b?. Click on it to see this pa?ith a ye? background!

    You can add as many ?hese?? as you like?st b??hey have the?ion to change ba?o th?iginal c?. The ne??t will give you three choice?ello?ed, and original color.

    ? align="?">
    <INPUT type?tton" value="Change to Yellow!" name?tton3" onClick="??.bgC?='ye?'"> <br>
    <INPUT?e="butto?alue="Change to Red!" name="?on4" onC="document.bgColor='red'"> <br>
    <INPUT type?tton" value="Change back!" name=?ton5" onClick="document.bgColor='white'"> </FORM>

    Now you will have ??ttons. Give them?ry!

    ? align="?">



    The last scri?e will do in this section will a?? to use ??ton as a link. It's ?ty f???ery now and then???he following command in ? onClick command:

    Here is a scri?hat will send you to?age I made just for ? example:

    <FORM>? /> <INPU?pe="?on" ?e="Go to my other Page!" name="button6" onClick="window.location?tp:/?rninghig??/jsc??page?'">
    </FORM>

    Here ?he button. Give it a?, and see th?her page.

    ?> ?m>

    That does it for now, let's go on to History Bns.

    ? align="?">
    ?ame src=?/336-280?" width="336" he?="280" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no">

    ? align="?">?���?���?���

    ? align="?">&n??d> ?r> ?> ?d>  ?>

    ???d> ? class="botbg"> ?d width="200" he?="40" bgcolor="#1B5389" ?s="botbg">  ? align="?er">

    ?ame src=?/468-60.php" width="468" height="60" framebo?="no" bo?="0"??idth="0"?ginheight="0" scrolling="no">

    Home | Con? UsLinks
    ©?yrights 2007 Free Web?ledge
    ?ipt type="text/j???ar dc_UnitID = 14;var dc_PublisherID = 35115?AdLinkColor = 'gold'? dc_isBoldActive= 'n?ar dc_adprod='ADL';?ipt type="text/j??t" SRC="?://kona.?era.com/javascript/lib/KonaLibInline.js"??t>