Cita:
Iniciado por PHPeros
No, no serviría porque no estás usando las comillas
![Serio](http://static.forosdelweb.com/fdwtheme/images/smilies/molesto.png)
Estas comillas?
<script type="text/javascript">
function cambiar() {
if(document.getElementById("up-double-guide").getAttribute("href")==
"selection.html#ubicacion"){
document.getElementById("up-double-guide").getAttribute("href")==
"selection.html#pantalon";
}else{
document.getElementById("up-double-guide").getAttribute("href")==selection.html#ubica cion;
}
}
</script>
<a id="up-double-guide" href="selection.html#ubicacion" onclick="cambiar()"></a>