Classic web design dictates that code should never alter the user’s browser. I guess it’s one of those un-written (or is it?) laws along with marquees and auto-playing music.
Fortunately disabling this nasty behavior is a snap in Firefox.
Go to Tools -> Options
Select the ‘Content’ tab
Click on ‘Advanced’ button
Select the checkboxes as shown below.