How to Logout if Javascript is Disabled

How to Logout if Javascript is Disabled

by Andrea Bianchi -
Number of replies: 2

Is there any setting or some script to be able to verify if a user has Javascript enabled? and if he doesn't, get him out of the site.
Thank you

Average of ratings: -
In reply to Andrea Bianchi

Re: How to Logout if Javascript is Disabled

by Lexy Walker -
Picture of Core developers Picture of Particularly helpful Moodlers

You can't have a script that detects if a user doesn't have Javascript. If they don't have Javascript, the script can't run.

You could do something with the <noscript> HTML tag, or change your login form so it required Javascript to perform the submit. But those are pretty horrible workarounds.

Why would you want to kick out non-Javascript users anyway?

In reply to Lexy Walker

Ri: Re: How to Logout if Javascript is Disabled

by Andrea Bianchi -
Because there are some needful implementations made with jquery that would not work without javascript
Do you know how to change the login form to request javascript to perform the submit?