I am having an ASP Page.
In that I have Form Element with the action specified
Now in this form I have element where I am calling JS func on click of one button.
It is calling javascript function and later calling the default form action.
Why is it so?
How can i execute just the function..?
Code:
<FORM METHOD="post" action="Update.asp" id=form name=form1 >
<td align=center width=10%><INPUT id=button1 type=submit ONCLICK="Gs_test()"
onmouseover="style.backgroundColor='blue'" onmouseout="style.backgroundColor='blue'" value=ABC name=submit1
style="width: 80%; height: 20px;background:blue; color:white; font-family:serif; font-size=medium; border-
color:black; border-width:1px" ></td>
<SCRIPT LANGUAGE="javascript">
function Gs_test()
{
alert("GSS");
}
</script>
'