NoScript for Firefox is an open-source add-on that pre-emptively blocks malicious scripts and allows JavaScript, Java and other potentially dangerous content only from sites you trust.
Because Firefox does not have easily-configured security zones like Internet Explorer, NoScript is needed to configure the web browser options on a per-site basis.