Click to See Complete Forum and Search --> : javascript.


DanUK
07-22-2003, 07:58 PM
hi.
Is there a way to stop people entering my website who do *not* have javascript enabled on their browsers? because otherwise, they can 'get away' with submitting anything in forms, as my validation is via javascript, and all my navigation and suchlike is too.
unfortunately, i cannot have a server-side script for validation etc...so i had to make it client-side.
If you can help in anyway, it's much appreciated.

Many thanks.

Jupac
07-22-2003, 08:50 PM
use this script in your <HEAD>
<noscript><META http-equiv="refresh" content="1; url=http://www.your.com/somethiing.html"></noscript>

DanUK
07-23-2003, 08:08 AM
Ahh brilliant, that'll make non-javascript browsers go to that file?

AdamBrill
07-23-2003, 08:20 AM
That is what it would do, but is it that important to validate that you are going to just throw out all the people without JS? According to thecounter.com(which is based off of 38,113,581 hits), 13% of people have JS turned off....

DanUK
07-23-2003, 08:44 AM
thanks, it works great.
I realise it's blocking a lot of people, but until I can get a server-side script for validation and suchlike, i have to do this to stop all the 'false' applications we receive. our validation is done via javascript, without that, people can submit 'anything' from long long forms.

thanks :)