Solved

How to enable/disable javascript of browser in PHP?

Posted on 2009-04-04
4
1,886 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 100 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 100 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to count occurrences of each item in an array.
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.

785 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