There is no better way to do this, because without interactivity on the client side, you cannot receive information from the client.
You can do something like this ...
- Configure meta redirect to trigger after 5 seconds
- use javascript to override meta redirects
Therefore, if javasccript is enabled, you get to a javascript page, otherwise a page without javascript
source share