Trigger JavaScript Anchor Function (Without User Clicking on it)
<p>I have a page where users see this anchor...</p>

<pre><code>&lt;a href="javascript:launchSomething("1", "2", "1")"&gt;Test&lt;/a&gt;
</code></pre>

<p>Is it possible to execute/call <code>launchSomething(.....)</code> function without having the user to click it? If the params were fixed values then I could just do something like ... </p>

<pre><code>//on document.ready() {
//  launchSomething( .... );  
//}
</code></pre>

<p>but the web page is generated dynamically and these params change too so what do I need to do to trigger it automatically once the web page has loaded? </p>

<p>thanks for help.</p>

<p>UPDATE</p>

<p>I have just got the markup changed to </p>

<pre><code>&lt;a class="click1" href="javascript:launchSomething('1', '2', '1')"&gt;Test&lt;/a&gt;
</code></pre>

<p>so it always has a class "click1"</p>
