0

Is there any way to enable JavaScript on the client machine using PHP?

2
  • 3
    53% is pretty acceptable, IMO. Commented Nov 26, 2009 at 14:25
  • Why in the world would I trust anybody who wants to run software on my computer against my will? You're talking about writing malware there, even if it doesn't look like it to you. If you could do what you asked, so could anybody else, and it could be used for all sorts of malicious purposes. Commented Dec 20, 2009 at 18:55

2 Answers 2

14

You can't do such a thing. It's impossible to modify user preferences stored on their local machines.

You can ask them to enable javascript if it's not the case using the noscript tag.

Sign up to request clarification or add additional context in comments.

Comments

5

No, as neither the HTTP protocol or HTML have a feature to do this. To have a website able to enable JavaScript would also be a breach of security. There is also no guarentee that the users browser has JavaScript.

You may wish to look at the <noscript> tags, which allow you to display a message to the user when JavaScript is not active.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.