html for redirection

Hello
I am trying to drop in some code to redirect a site if viewed by a smart phone. When I drop in via html mark-up at before head it shows the code on the page. The code is supposed to be in the front end to work. Any suggestions.
Is the code even correct? I came from my customer.

<!-- if (screen.width <= 699) {document.location = "http://weathermasterwindows.myw2m.com";} Thanks John _______________________________________________ freewaytalk mailing list email@hidden Update your subscriptions at: http://freewaytalk.net/person/options

Can you provide a link?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You’re missing some code, such as the closing tag. Make sure you copied it in its entirety.

Todd

<!-- if (screen.width <= 699) {document.location = "http://weathermasterwindows.myw2m.com";}

freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Isn’t there an action for that? Yes there is: http://www.softpress.com/kb/questions/369/Mobile+Redirect+Action


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options