• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1898
  • Last Modified:

How to enable/disable javascript of browser in PHP?

How to enable/disable javascript of browser or how to know it is enabled or disabled in PHP
  • 2
2 Solutions
Loganathan NatarajanLAMP DeveloperCommented:
May be like this,

<!--this is shown only if you have disabled javascript-->
you disabled javascript or have a browser that does not support javascript... please enable javascript.

Open in new window

scsplAuthor Commented:
This is I know but I want to enable javascript if disabled.
Loganathan NatarajanLAMP DeveloperCommented:
Through coding, you cannot. It is against browser security settings.  It is good to display message to enable javascript if it is disabled.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now