due to AsyncPostBackTrigger ControlID="button1" on a button1

window.onload = function ()
{

alert("test");
a();

}

function a();
{
alert ("b");
}

doesnot get executed secondtime without full post back