A revolving earth (earthani.gif--64x64) Beaverland Net
JavaScript Made Easy !
Menu in Japanese (japanv.gif--100x36)

Beaverland Net HTML Made Easy! logo (html02.gif--140x160)

Beaverland Historica logo (histbanr.jpg--140x360)

Beaverland Mythology logo (mythbanr.jpg--140x255)

Beaverland Stries logo (stories.jpg--140x276)

Beaverland Webs & Internet Secrets logo (web100.jpg--140x250)

Beaverland Cleopatra Gallery logo (galleryt.gif--177x275)

Beaverland Ciold War Years logo (coldwrbn.jpg--140x320)

onstore.gif (140x93)

beavbook.gif (120x160)

beavcomp.gif (120x160)

beavmovi.gif (120x160)

beavgift.gif (120x160)

beavtrav.gif (120x160)

music.gif (50x50) Beaverland Music

Made Easy!

Although JavaScript contains Java as part of its name, it has nothing to do with Java.

Some people insist that you have to write scripts within the <HEAD> . . . </HEAD> block, but you can write them anywhere—except for few instances.

I assume, your browser understands JavaScript because some older browsers cannot handle JavaScript. This is the main reason you have to write JavaScript as a series of comments so that it does not bother older browsers.

<SCRIPT language="JavaScript">
<!-- This is an HTML comment line as you know.
// This double-slash is a comment mark for JavaScript.
// These lines are within the HTML comment that
// ends right before </script> line.
// Older browsers simply skip these comments.
// If your browser understands JavaScript, then it
// will execute the following JavaScript function
// (or method).

alert("Your browser can understand JavaScript!")

// The long comment ends here!

In reality, you doesn’t write this much of comment. You probably see the following code:

<SCRIPT language="JavaScript">
<!-- to hide

alert("Your browser can understand JavaScript!")


Let’s check your browser. Please click the button below.

If your browser don’t understand JavaScript, you won’t see the message box as shown below:

Alert box (alert01.jpg--323x125)

Instead of writing the same code as shown above, I use the above button to check your browser. If I wrote the above code, each time you enter this page, the message box would pop up. Since this is a menu, visitors probably don’t like to see this message box each time they get back here.

If I set up a button for the checking as shown above, you can simply skip this part when you come back later.


June 16,

How to Create a Popup Window

Popup window on the screen (popup05.jpg--409x307)

September 15,

How to Use a Table with JavaScript

A girl dropping her bra (bra02.jpg--237x430)

September 16,

How to Speed Up Pictorial Presentation

A girl in bikini standing on a poolside (ba0108.jpg--220x401)

Web Ring
Beaverland eTopia Web Ring
Ring Owner: Akira Kato Site: Beaverland Home
Powered by BravenetPowered by Bravenet
Report Abuse

Tiger notebook banner upper part (tignote1.jpg--550x250)
Tiger notebook banner lower part (tignote2.jpg--550x212)
After the promotion period,
prices may change or
the above products are sold out.
Check them out for yourself!

Beaverland Forum
Featuring thought-provoking
columns and stories
inserted by FC2 system