Stopping window.location.replace from redirecting
<p>I have an html code that I can't change but can load .js file into it.</p>

<p>Can I add some java script code to stop <code>window.location.replace</code> from working?</p>