Jump to content

JavaScript Enabled/Not?


dibosite

Recommended Posts

The only way to find out is to attempt to use some javascript. If the javascript doesn't work, then it is turned off.

 

PHP can't do this because it's server side and javascript is client side.. trust me I've tried.

 

Your best bet is to dop something such as setting a cookie using javascript, then refreshing the page. Use php to check if the cookie is set. If it's set, then javascript is enabled. If not, either javascript is disabled, or cookies are disabled.

 

Also you should never make javascript mandatory. You can usually use php or another script to replace javascript for important things.

Link to comment
https://forums.phpfreaks.com/topic/75429-javascript-enablednot/#findComment-381578
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.