0

I designed a web page which contains some javascripts, but when I'm running the page in certain browsers like internet explorer my scripts get blocke and the browsers asks for manual enabling of the script in that browser

I need java script or jquery code for enabling script run in any browser automatically. Can anyone help me please?

Thank you

11
  • What type of Java script is it, an applet? Commented Jul 9, 2012 at 16:38
  • @Bergi I think he meant JavaScript? Commented Jul 9, 2012 at 16:39
  • @Bergi no there is some script for validating a web form in that page Commented Jul 9, 2012 at 16:39
  • And no, there will be no possibilty to automatically self-allow a script to run when the browser asks the user to do that, anything else would be a security leak. Commented Jul 9, 2012 at 16:39
  • I think this was due to the Internet Explorer security settings. Have you tried to lower them? Commented Jul 9, 2012 at 16:39

2 Answers 2

4

It is impossible for a website to turn on JavaScript if it is disabled in the browser.

Design your site with progressive enhancement and unobtrusive JavaScript in mind.


If, by "certain browsers like internet explorer", you mean "Internet Explorer will not run my code" (as opposed to "Browsers wil JS turned off will not run my code") then you may just need to learn how to write cross-browser compatible code.

Without a specific example of code that does not work (along with the specific error messages you receive), that topic is too broad to cover on StackOverflow.

Sign up to request clarification or add additional context in comments.

Comments

2

Sounds like you are running the website locally, ie opening the file not serving it from a web server. Try running a local web server or hosting your site on a free online service and as long as the browser doesn't have JavaScript disabled the messages shouldn't show up.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.