@Betina,
con tu propio ejemplo me funciona.
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>PCDATA</title>
<script type="text/javascript">
</script>
</head><body>
<a href='sigpag.htm?Opc1' >Primera opción</a>
<a href='sigpag.htm?Opc2' >segunda opción</a>
<a href='sigpag.htm?Opc3' >tercera opción</a></body></html>
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>PCDATA</title>
<script type="text/javascript">
var r="";
r=location.search.substr(1);
switch (r)
{
case "Opc1":
alert(1);
break;
case "Opc2":
alert(2)
break;
case "Opc3":
alert(3);
break;
}
</script>
</head><body>
</body></html>
lo mas probable sea las instrucciones que tienes en cada case.