Javascript: redirect to page?

how to use jquery [javascript] to go to another page?

or change url in urlfield browser and press enter?

+6
javascript
source share
2 answers

has nothing to do with jQuery, just this:

window.location.href = 'whatever.html'; 
+13
source share

(Plain old javascript)

 window.location = 'http://another-place.com'; 
+4
source share

All Articles