"listen " wait for tag to print
<p>I have javascript "API" function that need a certain tag to work with.</p>

<p>i got problem with the positioning of the script. here is what i mean :</p>

<ol>
<li><p>if the Script has been written in the head , i need to wait for the tag to get printed to work with , what's means that i need to follow on the page and check when the tag get print and than start the function.</p></li>
<li><p>if the script has been written in the body after the tag got printed , i can't call the function after the tag got printed , like this :</p></li>
</ol>

<p><code>&lt;tag&gt;&lt;/tag&gt; &lt;script&gt; startfunction(); &lt;/script&gt;</code></p>

<p>my question is , how can i follow the tag , check if it prints , if it does start the functions , if it doesn't "listen" to the tag and wait for it to print and than start the function , *i cant wait for the whole page to load.</p>

<p>how to make it done?</p>
