PDA

View Full Version : Giving form action according the alert message


rosh
09-10-2005, 11:11 AM
hi all

my problem is to give form action according to alert message output
i am trying the below code but it is not working

function validate()
{
var name=alert("R U Sure to delete the data");
if(name=true)
{
document.form2.action=fdelete.jsp;

}
else
{
document.form2.action=inter_delete.jsp;

}

}