si es con un botoncillo este es el codigo
Código HTML:
<head> <script language="JavaScript">
function valores()
{
var sw=0;
for(c=1; c<=4; c++)
{
if (document.forms['formulario']['box'+c].checked==true)
{
sw=1;
break;
}
}
if (sw==1)
{
var msje='';
for(c=1; c<=4; c++)
{
if (document.forms['formulario']['box'+c].checked==true)
msje=msje+" "+document.forms['formulario']['box'+c].value+",";
}
alert("Escogio :"+msje);
}else
{
alert("no ha selecccionado nada");
}
}
</script>
</head>
<body>
<form name="formulario" action="nuevo.html" method="get">
<input type="checkbox" value="rojo" name="box1">rojo
<BR>
<input type="checkbox" value="azul" name="box2">azul
<BR>
<input type="checkbox" value="blanco" name="box3">blanco
<BR>
<input type="checkbox" value="verde" name="box4">verde
<BR>
<input type="button"value="pasa o no?" onClick="valores()">
</form>
</body>
avisame si te sirve