how to set a variable for external javascript file after the js file is defined?
<p>I'm using jQuery Mobile Ajax navigation feature, And I need to change a variable that is defined inside external js file, So I <strong>can't</strong> put my definition <strong>before</strong> I load that js file...</p>

<p>So, How to change value of a variable for external javascript file after the js file is defined?</p>

<p>(That external js file includes events)</p>

<hr>

<p><em>So this question is <strong>not</strong> duplicate of <a href="http://stackoverflow.com/q/2357472/942659">that question</a>.</em></p>

<hr>

<h2>Update</h2>

<p>My JS File contains events, something like this: <code>$(document).on('mousemove','#main',function() { /*something*/} );</code></p>

<p>And I need that variable. Is it possible to pass variable to that?</p>

<p>I have tried simply changing that variable <code>i = 5;</code>, but I'm getting undefined error.</p>

<hr>

<h2>Update 2</h2>

<p>The external JS file is something for some pages that are almost same, but a little different, just one or two parameters.</p>

<p>And I simply want to pass the parameters to that JS file. Is it possible? How?</p>
