JavaScript window.scrollTo Alternative
<p>I'm writing a specific javascript plugin for a specific website.</p>

<p>In one of my methods i want to use <code>window.scrollTo</code> but unfortunately the site owner has overridden the native functionality of this function (also window.scroll).</p>

<p>So i'm thinking about 2 possible solutions: </p>

<ol>
<li>Write my own <code>myScrollTo</code> implementation</li>
<li>Somehow detect if the native function is overridden and call the native function.</li>
</ol>

<p>If you have any ideas on this, i will be very glad to hear them :)</p>

<p>Thanks.</p>