dcsimg

Assignment 21: A Possible Answer

     You actually have to hit cancel to be reading this. Here's how I did it.


In the HEAD commands, I put this:

<SCRIPT LANGUAGE="javascript">

function wannago()

{
if (confirm("Are you sure you want to enter HTML Goodies?") )
{
parent.location='http://www.htmlgoodies.com';
alert("Good choice");
}

else

{
alert("Then you'll stay right here");
defaultStatus='Chicken!';
}

}

</SCRIPT>

...and the <BODY> command looks like this:

<BODY BGCOLOR="ffffcc" onLoad="wannago()">


     The process was actually quite simple:

 

Did You Get It?

 

Back to the Index Page