robert_gsfame Posted July 17, 2010 Share Posted July 17, 2010 how can i check whether user has enable or disable their javascript on browser using php script?? Link to comment https://forums.phpfreaks.com/topic/208005-check-javascript-turned-off-or-on-using-php/ Share on other sites More sharing options...
kenrbnsn Posted July 17, 2010 Share Posted July 17, 2010 You can't directly, since Javascript is a component of the browser. You could assume it's turned off and have an AJAX function execute to set your flag to "enabled". This would only happen if the user had Javascript enabled. But this only happens when the page is loaded in the browser. Ken Link to comment https://forums.phpfreaks.com/topic/208005-check-javascript-turned-off-or-on-using-php/#findComment-1087344 Share on other sites More sharing options...
robert_gsfame Posted July 17, 2010 Author Share Posted July 17, 2010 OMG....i really worry now as 80% of my pages contain javascript and it wont work if javascript turned off...i search on google and i found that less than 10 % browsers have disabled their javascript....i dont know whether is it true or not but hope it's true.. Link to comment https://forums.phpfreaks.com/topic/208005-check-javascript-turned-off-or-on-using-php/#findComment-1087347 Share on other sites More sharing options...
KevinM1 Posted July 17, 2010 Share Posted July 17, 2010 OMG....i really worry now as 80% of my pages contain javascript and it wont work if javascript turned off...i search on google and i found that less than 10 % browsers have disabled their javascript....i dont know whether is it true or not but hope it's true.. JavaScript should only be used to enhance existing functionality. If JavaScript is required for your site to work, you should redesign it. Link to comment https://forums.phpfreaks.com/topic/208005-check-javascript-turned-off-or-on-using-php/#findComment-1087381 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.