if you have java script function on aspx page lets say "MyFunc()"
and if you want to call this function on specific button click then
write Add attribute to your button in code behind page as show in below
btnSave.Attributes.Add("onclick","return MyFunc()");
if you want to call java script on dropdown value change then call as below
ddlStatus.Attributes.Add("OnChange","MyFunc()");
if you want to call java script on page load call function below in page load
ClientScript.RegisterStartupScript(GetType(), "key", "Test();", true);