noscript - JavaScript disabled: how to show different messages for mobile and desktop. -


i need display different messages desktop , mobile web sites when javascript disabled.

currently have

<noscript>       <meta http-equiv="refresh" content="0; url=/error.html" /> </noscript> 

and need code (i use pseudocode)

<noscript>     if desktop     <meta http-equiv="refresh" content="0; url=/error.html" />     if mobile     <meta http-equiv="refresh" content="0; url=/mobile-error.html" /> </noscript> 

thanks

is there server backend website? try , mobile browser detection based off of user-agent received connecting browser.

see this stackoverflow post using user agent detect mobile.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -