few ideas... but others will have better ones:
1) put a "higher" level of security on your browser settings. On IE, go to tool, options, security settings
2) use a pop up blocker, etc.
3) ALWAYS have the browser "ask for permission" on things... THEN if the process ask you for your permission AND you don't know what program/website is asking for it or why... DON'T accept it.
Just hit cancel.
4) use common since... and be aware of where you are "surfing" to and what pages your going to.... Stay away from bad sites