0

I have a task to show "all sites to run JavaScript setting" in my asp.net application like this:

enter image description here

  • we can see this JavaScript settings in Chrome setting but i need to show this seetings in my asp.net application.
  • I don't have any idea to implement this setting in my page.
6
  • 2
    Sorry, I haven't got a clue what you're asking here. You want to replicate a Chrome Setting in your ASP.NET web application? Commented Apr 2, 2014 at 14:26
  • 2
    Your website isn't going to be able to tell browsers whether or not they can use javascript Commented Apr 2, 2014 at 14:26
  • Exactly yes. I need to show that chrome setting in my asp.net application. Commented Apr 2, 2014 at 14:28
  • 1
    Firstly, as @mituw16 say, you cannot change any setting on a users browser - that would be a massive security risk. Secondly, it would also assume that every single one of your users is using Chrome. I'm not sure you know what you're asking for here Commented Apr 2, 2014 at 14:29
  • Browser is not an issue but like that all browser having that JavaScript enabled setting. I need to implement that in my asp.net application. Commented Apr 2, 2014 at 14:32

2 Answers 2

3

I don't know if you can read that setting directly or not.

You'd probably be better off using <noscript> tags. Anything within a noscript tag will display if the browser is unable to use javascript.

Something like

<noscript>
   You must have javascript enabled to view this web page. Please enable it 
   in your browser settings.
</noscript>

Try it with StackOverflow. Disable javascript and reload this page and you'll see how it works.

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

Comments

0

It is not seem to be possible:

See the similar post:

Enable script run in web browser using java script codes

2 Comments

If it is a replication, please comment under the original question - once you have enough reputation you will be able to request to close the question yourself
@^ Sure I respect your suggestion :).

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.