I\'m relatively new to JS, but I have programmed in C before, and I\'m trying to get my head around the whole event driven nature of it. I\'m trying to create a script that
yes your javascript function will call only when page will load .If you also want to call that init() function on click Test button so please try like this :
JavaScript:
function init(){ alert("hello"); }
window.onload = init;