How can i prevent javascript being able to be exacuted from adress bar?

I DO NOT know if thats possible. People always say make sure to do the real validation in the server-side. But what are the major patches can be made to prevent the site from gatherin data from browser adress bar ? What must not be written thru js? etc

thanks in advance