Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to enable/disable javascript of browser in PHP?

Posted on 2009-04-04
4
Medium Priority
?
1,893 Views
Last Modified: 2013-12-13
How to enable/disable javascript of browser or how to know it is enabled or disabled in PHP
0
Comment
Question by:scspl
  • 2
4 Comments
 
LVL 36

Accepted Solution

by:
Loganathan Natarajan earned 400 total points
ID: 24066436
May be like this,


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

Open in new window

0
 

Author Comment

by:scspl
ID: 24066449
This is I know but I want to enable javascript if disabled.
0
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 400 total points
ID: 24066460
Through coding, you cannot. It is against browser security settings.  It is good to display message to enable javascript if it is disabled.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question