2009-10-08 8 views

Respuesta

45
window.location.href = "someurl"; 
11

utiliza el objeto Localización:

window.location.href = 'some.html'; 

O simplemente

location.href = 'some.html'; 
-3

También puede hacer algo como esto:

document.location.href = "some.html"; 

o

document.location = "some.html"; 
+19

document.location estaba en desuso en favor de window.location alrededor de 1996, cuando se lanzó Netscape Navigator 3. – NickFitz

Cuestiones relacionadas