PDA

View Full Version : is this possible Help


shaz1987
12-10-2006, 12:28 AM
i want a alert message to come up when the check box is checked not through a button, i want it to alert when the teh checks it at that point is there anyway that can work ? i have tried but still i can not get it right



<script>


if(document.order.peporoni.checked==true) \\or 1
{
alert("*Free Delivery To YOur Door*);

}


</script>

<form name= "order">

<TD><h4> <INPUT TYPE= "CHECKBOX" NAME="Peporoni" value=37> Peporoni</h4> <P></TD>

Jon Hanlon
12-13-2006, 04:34 PM
Sorry? Huh?

BonRouge
12-14-2006, 06:17 AM
Sorry? Huh?

That's what I said the first few times.

coothead
12-14-2006, 08:11 AM
Hi there all,

I will take a guess that our friend shaz1987 wants something like this...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script type="text/javascript">
window.onload=function() {
document.order.peporoni.onclick=function(){
alert('*Free Delivery To Your Door*');
}
}
</script>

</head>
<body>

<table><tr><td>
<form name="order" action="#">
<h4> <input type="checkbox" name="peporoni" value="37" /> Peporoni</h4>
</form>
</td></tr></table>

</body>
</html>