tags:

views:

104

answers:

2

how do i use jquery [javascript] to goto another page?

or change the url in the browser urlfield and hit enter?

+8  A: 

nothing to do with jQuery, just this:

window.location.href = 'whatever.html';
nickf
+3  A: 

(Plain old javascript)

window.location = 'http://another-place.com';
gahooa
People learn jQuery now, and not JavaScript.
BipedalShark
@BipedalShark LOL. True but since jQuery has no method for doing this I think they're just going to have to step out of jQuery-world (as painful as that is I admit) sometimes. :)
Darrell Brogdon
@Darrell, I guess `$(window).attr("location", "http://another.com")` might work.. but what a waste of function calls... haha!
Doug Neiner