php - Make Javascript a requirement -
is there way make javascript requirement run pages on website? such if user disables javascript, cannot proceed further? example: have php site , want validate user-inputs javascript only.
i apologise if trivial issue. quite new javascript , have never seen nor heard of such implementation, solution love know how implement. thanks.
the <noscript>
tag defines alternate content users have disabled scripts in browser or have browser doesn’t support script.
the element can used in both , .
you can thing below , redirect users page saying please enable java script , try again placing below code in head tags
<noscript> <meta http-equiv="refresh" content="0;url=showamessagewithjavascriptdisabled.html"> </noscript>
the above code in header cause refresh url specified if javascript disabled
Comments
Post a Comment