How do you call a JavaScript function behind C#? I have a button that I created and there's C# code behind to execute specific tasks, but I also want to add JavaScript function, where it changes the action when the button it is fired.
Here is the JavaScript function,
function myFunction()
{
document.getElementByID("Form").action="/submit.aspx";
}
Here is my C# code for the button:
protected void btnSubmit_Click(object sender, EventArgs e)
{
}