aspose file tools*
The moose likes Beginning Java and the fly likes Enable JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Enable JavaScript" Watch "Enable JavaScript" New topic
Author

Enable JavaScript

Mahi Ranga
Ranch Hand

Joined: Jan 27, 2011
Posts: 35
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: 19762
    
  20

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 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Pene charl
Greenhorn

Joined: Jun 14, 2011
Posts: 21

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://www.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://aspose.com/file-tools
 
subject: Enable JavaScript