Location.replace - dose´nt work in Firefox

Hi,any idé why this dose´nt work in Firefox, but works fine in Internet Explorer?