2009-12-06 6 views

Répondre

13

rien à voir avec jQuery, ceci:

window.location.href = 'whatever.html'; 
4

(Plain Old javascript)

window.location = 'http://another-place.com'; 
+2

Les gens apprennent maintenant jQuery, et non JavaScript. –

+1

@BipedalShark LOL. C'est vrai, mais puisque jQuery n'a pas de méthode pour le faire, je pense qu'ils vont devoir sortir de jQuery-world (aussi pénible que j'avoue) parfois. :) –

+0

@Darrell, je devine '$ (window) .attr (" emplacement "," http://another.com ")' pourrait fonctionner .. mais quelle perte de fonction appelle ... haha! –

Questions connexes