## Radio Button Alert

Click on one of the radio buttons to see a message

1: 2: 3:

Here's the code for this.

<FORM> <p> 1: <INPUT TYPE="radio" NAME="radio" value="YOUR MESSAGE GOES HERE" onClick="alert(value)"> 2: <INPUT TYPE="radio" NAME="radio" value="YOUR MESSAGE GOES HERE" onClick="alert(value)"> 3: <INPUT TYPE="radio" NAME="radio" value="YOUR MESSAGE GOES HERE" onClick="alert(value)"> </form>

## Button Alert

Push this button to make a message appear.

Here's the code.

<form> <input type="button" value="message" onClick="alert('this is the message'); return true"> </form>

## Goodbye Alert

To see this alert, click here.

All you need to do is put this code inside your body tag

    <body onUnload="window.alert('YOUR MESSAE GOES HERE')">

An example is:
`<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onUnload="window.alert('YOUR MESSAE GOES HERE')">`
or
`<body onUnload="window.alert('YOUR MESSAE GOES HERE')">`

## Link Alert

When you click on a link like this, an alert will pop up and then you will be taken to the link destination. Give it a shot!
To make use of this script, copy the following lines of code.

    <A HREF="LINK GOES HERE" onClick="alert('YOUR MESSAGE GOES HERE')">YOUR LINK DESCRIPTION GOES HERE</A>

## Link Confirm/Cancel Alert

Click on the link to see this example. CLICK ME!!
Here how it works. Just put this part in your HEAD tag and then change YOUR CONFIRM MESSAGE and YOUR LINK GOES HERE.

<script> function rusure(){ question = confirm("YOUR CONFIRM MESSAGE") if (question !="0"){ top.location = "YOUR LINK GOES HERE" } } </script> Now put this anywhere in your page and change YOUR LINK DESCRIPTION <a href="" onClick="rusure(); return false;">YOUR LINK DESCRIPTION</a>

## Link Confirm/Cancel Alert - 2 Links

Click on the links to see these examples. CLICK ME!! or CLICK ME!!
Here how it works. Just put this part in your HEAD tag and then change YOUR CONFIRM MESSAGE and YOUR LINK GOES HERE.

    <script>
    function rusure(){
    	question = confirm("YOUR CONFIRM MESSAGE")
    	if (question !="0"){
    		top.location = "YOUR LINK GOES HERE"
    	}
    }
    function rusure1(){
    	question = confirm("YOUR CONFIRM MESSAGE")
    	if (question !="0"){
    		top.location = "YOUR LINK GOES HERE"
    	}
    }
    </script>

    Now put this anywhere in your page and change YOUR LINK DESCRIPTION

    <a href="" onClick="rusure(); return false;">YOUR LINK DESCRIPTION</a><br>
    <a href="" onClick="rusure1(); return false;">YOUR LINK DESCRIPTION</a>

     Go Back to Doug's JavaScript Page

    Confirm/Cancel Alert - New Window
    Click this to see the example!

    Here it goes...put this in your HEAD tag and change CONFIRM MESSAGE and LINK LOCATION and any of the window properties.

    <script>
    function winconfirm(){
    	question = confirm("CONFIRM MESSAGE")
    	if (question != "0"){
    		window.open("LINK LOCATION", "NewWin", "toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260")
    	}
    }
    </script>
    Now throw this somewhere in your page and change the LINK DESCRIPTION.

    <a href="" onClick="winconfirm(); return false;">LINK DESCRIPTION</a>