Calling javascript without any action
- by ayush
i have the following lines of html code -
<div class="twitters" id="cbd">
<p><a href="javascript:;" onClick="tweeet('<?php echo $c; ?>')">My Tweets!</a></p>
</div>
Now what i need to do is call the tweet() javascript function without any link being clicked or any button being clicked . i.e this function is called on its own whenever the page is loaded.