Run JS function on page load if condition
<p>I have the following link which opens a dom window...</p>

<pre><code>&lt;a href='#inlineContent' class='defaultDOMWindow'&gt;(edit interests)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;";?&gt;

    &lt;script type='text/javascript'&gt; 
    $('.defaultDOMWindow').openDOMWindow({ 
    eventType:'click', 
    loader:1, 
    loaderImagePath:'animationProcessing.gif', 
    loaderHeight:16, 
    loaderWidth:17 
    }); 
    &lt;/script&gt; 
    &lt;div id='inlineContent' style='display: none;'&gt; 
    &lt;h1 class='login-hdr'&gt;Your Interests!&lt;/h1&gt;
</code></pre>

<p>What I need to do is if a user visits a certain url eg, www.mysite.com#DOMwindow the DOM window would then load without the user having to click the link, but if he visits the url normally with www.mysite.com the window would not load, im not sure if this is possible but thought id ask...</p>
