One of the great things about Firefox is that you can extend the functionality with add-ons. NoScript allows you to block all scripts on a website except for trusted domains. This includes JavaScript, Java, and more. Using this, your browser will never be hijacked or clickjacked.