Javascript

Here I'm going to show you a few nifty little javascript things, and at the end, I'll give you the address of a page where you can learn some more, if you're interested. If you don't have a javascript-enabled browser, you might as well skip this section, because if you screw up, you won't know it, and people who get a bunch of javascript errors when they go to a site hardly ever come back.

It seems that people deliberately try to make javascript look hard. I had a hell of a time finding anything that actually taught you how to do it, most "tutorials" on javascript are just trying to get you to use their own (copyrighted, of course) programs. So I was amazed when I found out how easy it actually was.

This is a command that makes a certain text appear in the status bar at the bottom of the page whenever the mouse is over it:

<A href="http://members.xoom.com/FrogQueen/sitelist.html"
onmouseover="window.status='visit all of my sites from one page!';return true"
onmouseout="window.status='Document: Done';return true"> Honey's Sites.. </A>
Here's what it means: Here's how it looks:
Honey's Sites..

And, of course, there's the ever-loving pop-up alert box. Please use these sparingly, and never on a main page.

<SCRIPT>
<!--
alert("Hi there!")
// -->
</SCRIPT>

That's all there is to it!
Here's how it works: To make it work, the best thing to do is enclose it in your HEAD commands. Here's how to set that up..
<HTML>
<HEAD>
<TITLE> Alert box page </TITLE>
<SCRIPT>
<!--
alert("Hi there!")
// -->
</SCRIPT>
</HEAD>

<BODY BGCOLOR=ffffff>

<center> NIFTY, HUNH? </center>

</BODY>
</HTML>

Here's how it looks.

This is a way to make a message pop up when someone presses a button on your page. You can use it in a normal form code, too.

<CENTER> <FORM> <INPUT type="button" value="DON’T PRESS!" onClick="alert ('DON’T PRESS IT AGAIN!') "> </FORM> </CENTER>

After the last one, this should be pretty much self-explanatory.

It looks like this:
Try it!


If you want to learn more about javascript applications, check out the Netscape page:
JavaScript Guide
Or, this version was easier to understand:
Javascript Guide

Back to the tutorial menu