Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/11/2013, 03:31
JUMASOL
 
Fecha de Ingreso: noviembre-2005
Mensajes: 889
Antigüedad: 18 años, 5 meses
Puntos: 8
Respuesta: Problema con inserción de código

Disculpad.

Me respondo yo mismo.

Estaba mal escrito. Sería así:

Código:
<script>
function hash(){
if ( window.location.hash == "#unhashtag" ) {
document.write("<a class='nombreclase' href='xxxxxxxxxxxxxx'>xxxxxxxxxxxxxx</a>");
}
}
hash();
</script>