html - How to detect if JavaScript is disabled? -


there post morning asking how many people disable javascript. began wonder techniques might used determine if user has disabled. know of short/simple ways detect if javascript disabled? intention give warning site not able function without browser having js enabled, want redirect them content able work in abscence of js, need detection place holder start.

i assume you're trying decide whether or not deliver javascript-enhanced content. best implementations degrade cleanly, site still operates without javascript. assume mean server-side detection, rather using <noscript> element unexplained reason.

there not way perform server-side javascript detection. alternative possible set cookie using javascript, , test cookie using server-side scripting upon subsequent page views. not suitable deciding content deliver not able distinguish visitors without cookie new visitors or visitors blocking cookies.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -