Jump to content

check javascript turned off or on using php


robert_gsfame

Recommended Posts

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
Share on other sites

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.. :P

 

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.