Redirect based on screen resolution with jQuery?

You don't need jQuery. You can use screen. Width, which works in all browsers: if (screen.Width.

$(document). Ready(function() { if (screen. Width >= 1024) { window.location.

Replace("example.com/1024.html"); } else { window.location. Replace("example.com/index.html"); } }); Reference notes in the answer to this question on difference between window.location. Replace and window.location.href.

Good point about location. Replace, but why wait until document. Ready?

– Pekka Nov 24 '10 at 0:59 No particular reason for document. Ready, just a natural response to a jQuery question. – Dean Taylor Nov 24 '10 at 1:03.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions