Calling javascript without any action
Posted
by ayush
on Stack Overflow
See other posts from Stack Overflow
or by ayush
Published on 2010-06-12T07:14:36Z
Indexed on
2010/06/12
7:22 UTC
Read the original article
Hit count: 350
php
|JavaScript
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.
© Stack Overflow or respective owner