|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How can I enable/disable Java Script in the browser?
Since I use Java Script in my pages it would be nice to be able to tell my visitors how they can enable Java Script, if they for some reason has disabled it.
How is that done? Is the procedure any different between IE, FF and NE? |
|
#2
|
||||
|
||||
|
Behave.
If I want to surf with JS disabled, that's up to me, not you! |
|
#3
|
||||
|
||||
|
agreed...
imagine the security hole that would occur if websites could enable javascript when the user has disabled it? |
|
#4
|
|||
|
|||
|
Maybe a little clarification is needed...
I agree with both of you, but I am not looking for a way to automatically enable Java Script in each visitor's browser. As both of you very tacitly imply in your posts, that would not be very nice or smart.
However, what I'm looking for is a way to inform the visitor about how he or she temporarly can allow Java Script to run (if it is disabled and if they like me don't know how to enable/disable it). Otherwise event handlers such as Onclick/Onsumit etc. which I use in several places won't work, will they? And if they can't run the visitor will not be able to use the functions that my pages offer (but of course that's their choice, and I am aware of that). After all, isn't there a tiny chance that a person that visits your pages want to use everything you have to offer? |
|
#5
|
||||
|
||||
|
Then you need to redesign your site.
It is wrong, and in some cases illegal to rely on JavaScript for your site's functionality. It should only be used for frills. There is nothing you can do JS wise for functionality that you couldn't redo properly using server side scripts, and proper html. |
|
#6
|
||||
|
||||
|
Most sites simply put a plain text message on the page stating that Javasacript should be enabled to view the site properly. Nothing programmatic about it. But as Agent47 states, relying on Javascript as a primary source of functionality is highly ill-advised.
- Search engines might not index your page properly, thus causing lower pagerank. - Navigation and key features in Javascript are not accessible, and thus disable your entire site to those with special needs (people with disabilities using special types of internet browsers). - Many users do disable Javascript, again likely giving those users a negative view of your site. A lot of this does sound harsh considering it is common practice nowadays to use Javascript on a website. Most browsers do support it, and many sites utilize Javascript very well. I just hope you strongly consider the consequences of relying on Javascript to properly present your page to the public. Oh, and I think the text message... Something like "If the page isn't displaying cleanly, try enabling Javascript by following these steps..." Don't forget to consider steps for all popular browsers. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > How can I enable/disable Java Script in the browser? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|