Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/11/2008, 03:58
FJE
 
Fecha de Ingreso: noviembre-2008
Mensajes: 29
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Abrir url desde prompt

Gracias por tu respuesta, el código ahora se ha quedado así:

function abrirurl(){
window.open(prompt('introduzca dirección', location.href), '_self')
}

<input type="button" value="Abrir URL" onClick='abrirurl();'>

Pero sigue sin funcionar, ¿qué estoy haciendo mal?

Un saludo y gracias.