never_had_a_name
never_had_a_name

Reputation: 93286

javascript: redirect to a page?

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

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

Upvotes: 6

Views: 1177

Answers (2)

gahooa
gahooa

Reputation: 137512

(Plain old javascript)

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

Upvotes: 4

nickf
nickf

Reputation: 546413

nothing to do with jQuery, just this:

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

Upvotes: 13

Related Questions