tags:

views:

50

answers:

2

How do i enabled browser javascript using code?

using java,gwt or javascript

+4  A: 

Enabling javascript is a user preference and do not try to change that.

The best possible way will be to detect whether javascript is enabled or no and show the user a message indicating that script is turned off and they won't be able to access the full funcitonality of the page.

rahul
A: 

You can't.

The reason there is an option to turn off java and javascript it to prevent code from running client-side. You cannot use client-side code on a machine where client-side code has been disabled to enable client-side code.

Alex