Having Problems With Javascript Redirect
I have created a mobile friendly site for myself and want to redirect visitors if they find it with a resolution of more than 600 pixels to my main site.
The script I'm using is this:
<script language="javascript">
var width = screen.width;
if (width >=600) {window.location='
http://mysite.com/'}
</script>
I have placed this code between the <head> and </head> tags but the screen if anything refreshes but does not redirect.
Hope you get the gist and can help
Thanks
Chris
Get your affiliate marketing business off to a good start, visit Secret Affiliate Cash and pick up your Free Affiliate Marketing Report.
Get your affiliate marketing business off to a good start, visit Secret Affiliate Cash and pick up your Free Affiliate Marketing Report.