The moose likes Beginning Java and the fly likes Enable JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Enable JavaScript" Watch "Enable JavaScript" New topic
Author

Enable JavaScript

Mahi Ranga
Ranch Hand

Joined: Jan 27, 2011
Posts: 33
Hi All,

How can I enable JavaScript by using JSP Programme.

please tell me.

Regards,
Mahi Rangs.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

If you mean to enable JavaScript in the browser when the user has turned it off, you can't. It would pose a great security risk, if malicious websites could turn on JavaScript, then run their malicious code.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Pene charl
Greenhorn

Joined: Jun 14, 2011
Posts: 20

If you need to enable particular field through javascript with the help of id property.
Write the following code in javascript:
document.getElementById("ID name").enabled=true;


Regards:Prince Charles
http://princecharl.blogspot.com
zameel amjed
Greenhorn

Joined: Feb 16, 2011
Posts: 14

JSP is serverside so you cannot deal with user's browser settings...
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Enable JavaScript
 
Similar Threads
javascript print - No background colors in print preview
Need Help
enable cookies
enforcing to enable javascript
how to enable a textarea in javascript?