On the code below, I have four button that will execute the onsubmit function. What parameter will I pass to the onsubmit function. Depending on the parameter that each button will pass, the onSubmit function will display different messages. Also, I want a message that will prompt the user to proceed or cancel, how do I do that?
<HTML>
<HEAD>
</HEAD>
<Script language="Javascript">
function cmdSubmit(thisForm)
{
ver=thisForm.wkce.value
if (ver =="wkce"
{
alert("Consolidate WKCE.Do you want to proceed?"
}
}
</Script>
<BODY bgcolor="white">
<center>
<P> </p>
<h2>Click Version</h2>
<FORM name=thisForm METHOD=post>
<P> </p>
<input type = image src=<%=bce%> onclick="cmdSubmit(thisForm)">
<input type = image src=<%=bbp%> onclick="cmdSubmit(thisForm)">
<input type = image src=<%=bny%> onclick="cmdSubmit(thisForm)">
<input type = image src=<%=bae%> onclick="cmdSubmit(thisForm)">
</BODY>
</FORM>
<HTML>
<HEAD>
</HEAD>
<Script language="Javascript">
function cmdSubmit(thisForm)
{
ver=thisForm.wkce.value
if (ver =="wkce"
{
alert("Consolidate WKCE.Do you want to proceed?"
}
}
</Script>
<BODY bgcolor="white">
<center>
<P> </p>
<h2>Click Version</h2>
<FORM name=thisForm METHOD=post>
<P> </p>
<input type = image src=<%=bce%> onclick="cmdSubmit(thisForm)">
<input type = image src=<%=bbp%> onclick="cmdSubmit(thisForm)">
<input type = image src=<%=bny%> onclick="cmdSubmit(thisForm)">
<input type = image src=<%=bae%> onclick="cmdSubmit(thisForm)">
</BODY>
</FORM>