1

P.S - The answer here did not help.

Also, as for this, I am not sure how to implement the feature that was mentioned by the community wiki

We have a form whose data are being submitted using Ajax only in PHP and Laravel. That is not a big deal because the form can be submitted using regular submit.

But there are certain things that only Ajax request will do. As an example. uploading a file to a temporary folder, before submitting the form. Now, I dont want to use normal submit to do that. Apart from that, there are other things like getting OTP to mobile and all that.

So, is there any way to disable the page completely when JavaScript is disabled? Meaning apart from a warning message that "JavaScript must be enabled", the user will not be able to do anything.

I am aware of a tag called <noscript> but will that help in my case?

1
  • 2
    Browsers don't load javascript files if js is disabled, you can set a coockie or something or use something like this <noscript><meta http-equiv="Refresh" content="0;gotoNoJSPage.html"></noscript> to redirect the user Commented Apr 23, 2021 at 8:20

1 Answer 1

1

Browsers don't load javascript files if js is disabled, you can set a coockie or something or use something like this

<noscript><meta http-equiv="Refresh" content="0;gotoNoJSPage.html"></noscript> 

to redirect the user

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

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.