On a button click i am calling a server side function in which i am calling a Javascript function like
Page.ClientScript.RegisterStartupScript(
this.GetType(),
"scriptsKey",
"<script type=\"text/JavaScript\" language=\"javascript\">test();</script>");
But Javascript function is not calling.
This works for me. Hope it will work for you too.
I have edited the html page which you have provided. The updated page is as below
You can call the function from code behind like this :
MyForm.aspx.cs
MyForm.aspx