<?e>Free Webde? Tutorials::Basics- JavaScri??ial <?e width="100border="0"> <?owspan="2">

Web Designing Made Easy

Add to Favouri?/A> <?align="top">Tell a Friend

&nb?font face="A?, Helvetica, san?? size="2">P? thi?ge

Make Your Home Paa>

Submit a Tu?al

Link?ont>

Free Resou?

Translate a webpage in you?nguage

Earn money with ? web?

SuggestionsMETA Tag GeneratorCheck Si?opularit?ont>

Search Sugges? Tool

Men?nera?/fon?a>

Ad??k

Valid CSS!

<? <?owspan="1" align="center" valign="to?bgcolor="#376B99"> The Ba?- Ja?? Tutorial
The basic? adding JavaScri?o yo?age
To ge?arted wi?avaScrip?ou will ? to be able ?ee the tag that ? set a scrip?art from the HTMhe tags ? to begin and end a ???he <SCRIPT> and &l?CRIPT> tags. The opening ??ld a??ke this:

<?ign="lef?&l?RIPT language="JavaScrip?

The language="JavaScrip?ommand i?ere ?he b?er can tell ?code tha?llow? in JavaScri?nd not another scrip? language, s?as VBScript. The javascript code will follow thi?g, and end with ?</SCRIPT> tag:

<SCRIPT language="Scri?

........JavaScript Code...........

</SCRIPT>

<?ign="lef?font color="#FFFFFF"> Yo?n ha??ny <SCRIPT> tags as you need ???he body of your HTML doc???as though it were a normal tag. Just remembe? clo?ach ?befo?ou go on! Al?if you a?oing to ?JavaScri??ions (we will ge? the?ater on) , you will need to ?e yo??ions inside ?<HEAD> &l?EAD> tag? you?cument. This way, yo??ions are loaded befo?he page begins to di??nd you won't see all kinds of Ja?? errors. Here is an exam?

<?ign="lef?&l?AD>
&l?TLE>My World</TITLE>

<SCRIPT language="JavaScri?
?? JavaScrip??.. ? </SCRIPT> &l?EAD>

<?ign="lef?font color="#FFFFFF"> No?here is ?l one la?hing you sho??befo?e begin ?ing ?? Since there are older b?ers being used o?here, they do no?cognize ?<SCRIPT> ? Rather ? performing ? javascript,?ll display the text of your ???ough you meant for i? be a fe?nes of text on the screen. To ge?ound thi?oblem, you have ?? the bro? into ignoring the text ?in the <SCRIPT> tag. This is done by ?g an HTML commen?he older bro??ll ignore the te?nside the commen?but a Ja?? capable bro? will go ahead and perfo?our ??Here is how ?o it:

<SCRIPT language="JavaScri?

<!-- This open?e HTML comments ? will hide the scrip?om old b?ers
......Ja?? Sta?nts.......

//--> This closes the comment section and the b?er will ? on normally

P??at, isn'?? Of cou? it'?? nea? get? to an actual sc?, so let's get going! On we go, ?he section: The MouseOve?our Firs??.

Previo���?���?h=Ne���?���?h=

&nbs?/p>

<?
HomeHome |Ad?ise ? href="contact.php">Con���? UsCon? Us ?href="re?ces.?>Free Resou���? F?Reso??> |Submit a Tutorial
&nbs??

&nbs??