saravanataee Posted March 7, 2013 Share Posted March 7, 2013 Dear all, My new web project is fully based on javascript. Each and every fields and form's have javascrip and ajax call's. So, if any user who comes without any knowledge of javascrip whether it is enabled or disabled in browser, my site will not work properly for them. So, i want to prevent them from unknowingly feel that the site has problem. Instead i just want to throw an error like google or any site does. If an access to my page comes from a browser i should first check whether the javascript functionality has been enables or not. If not i will throw an error saying that "please enable javascript in your browser for the better user interface something like that. How can i acheive this. I am having this in mind but do not know how to acheive the output. Any help will be greatful. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/275354-javascript-disabled-error-in-browser-when-accessing-my-site/ Share on other sites More sharing options...
haku Posted March 8, 2013 Share Posted March 8, 2013 You set that message by default, and remove it using Javascript on page load. Quote Link to comment https://forums.phpfreaks.com/topic/275354-javascript-disabled-error-in-browser-when-accessing-my-site/#findComment-1417445 Share on other sites More sharing options...
nogray Posted March 8, 2013 Share Posted March 8, 2013 Just use a noscript tag e.g. <noscript><strong>YOU NEED JAVASCRIPT</strong></noscript> Quote Link to comment https://forums.phpfreaks.com/topic/275354-javascript-disabled-error-in-browser-when-accessing-my-site/#findComment-1417603 Share on other sites More sharing options...
trq Posted March 8, 2013 Share Posted March 8, 2013 So, i want to prevent them from unknowingly feel that the site has problem.But the site does have the problem. It doesn't work without JavaScript.Instead i just want to throw an error like google or any site does.Like any good site, Google handles JavaScript being disabled just fine. Quote Link to comment https://forums.phpfreaks.com/topic/275354-javascript-disabled-error-in-browser-when-accessing-my-site/#findComment-1417606 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.