RushiShroff
Programmer
I am trying to give prompt on link onClick event and then try to submit the form but it gives me an error on the line
prompt.
Rushi Shroff Rushi@emqube.com
"Life is beautiful."
prompt.
Code:
<tr>
<td><%=objRs("Company_Name")%></td>
<td align=left><a href="#" onClick="alertMe('<%=objRs("Company_Id")%>')">Delete</a></td>
</tr>
<script language=javascript>
function alertMe(val)
{
var a,val;
//alert("Hi");
a=Confirm("Are you sure you want to delete this record ?");
if (a)
{
document.admin_central.pCompany_Id.value=val;
document.admin_central.action="admin_central.asp";
document.admin_central.submit();
}
}
</script>
"Life is beautiful."