Javascript function getting called only on event!

Posted by Abhishek on Stack Overflow See other posts from Stack Overflow or by Abhishek
Published on 2010-04-01T08:52:40Z Indexed on 2010/04/01 8:53 UTC
Read the original article Hit count: 218

Filed under:
|
|

Hi,

I have a javascript function, I want it to be called programatically on init and later onClick event but its not getting called programatically but works ok with onClick.

The example would be:

function init() { a(); }

init() is called on initialization which should call a() but thats not happening!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about opensocial