Reputation: 786
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?
Upvotes: 1
Views: 90
Reputation: 2232
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
Upvotes: 1