Welcome Guest, Not a member yet? Register   Sign In
How to check whether javascript is enable or disable in client browser ?
#2

[eluser]Phil Sturgeon[/eluser]
That's right. To show a message to users with no JavaScript, use <noscript>. To show messages to users who do have JavaScript, hide it with CSS then show it with JS.

This of course means if they have no JS and no CSS it will show anyway, so if you are really worried about that put the message content in a different file and use AJAX to show it. However that would only work if they are on a browser that supports AJAX calls, at might not show even if they do have JavaScript.

None of it is straight forward... :down:


Messages In This Thread
How to check whether javascript is enable or disable in client browser ? - by El Forum - 01-27-2009, 04:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB