An action that detects all mobile browser

Auguste Auguste

2

http://localstreamer.posterous.com/javascript-code-snippet-how-to-detect-all-mob

To do an action for not mobile users simple take the same code and use the ‘not’ operator in the ‘if’ … so the code is

if (!mobile) { document.location = “http://www.mynotmobilewebsite.com”; }

Do you want a complete browser list? try this: http://www.zytrax.com/tech/web/mobile_ids.html

FreewayTalk

Join the friendliest community on the Net at FreewayTalk. Ask and answer questions about Softpress Freeway, or just gather around the virtual water cooler!