Sundar
Sundar

Reputation: 93

What is equivalent code for window.location in jQuery?

I am currently using window.location for client-side redirection in jQuery. Is there any equivalent syntax to do client-side redirection?

Upvotes: 2

Views: 2030

Answers (4)

tsr
tsr

Reputation: 45

window.location is working fine for IE, Firefox and Chrome.

Upvotes: 0

Tim Down
Tim Down

Reputation: 324717

If you're going to use jQuery, you should appreciate that all it is is a library that makes some JavaScript tasks easier. Don't try and use it for every JavaScript task under the sun.

Upvotes: 8

Anthony Mills
Anthony Mills

Reputation: 8784

window.location is provided by the browser's DOM, not jQuery. So if jQuery is not present, it matters not one bit.

Upvotes: 1

Daniel A. White
Daniel A. White

Reputation: 191058

You still can do that. JQuery is built upon JavaScript and the DOM.

Upvotes: 9

Related Questions