Solved

How to enable/disable javascript of browser in PHP?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now