angel2be
06-20-2002, 03:49 PM
I have a piece of code that checks a form and has a prompt that passes back information if submitted to continue in the process. The problem is that the prompt box flashes and then disappears and I can't access it. It is as if the cancel button is being it. Any ideas?
TIA
if (theForm.asset_status_cd.options[theForm.asset_status_cd.selectedIndex].value=="WFD")
{
var theResponse = window.prompt("Choosing this status code will close all requests, are you sure you want to do this? Input space provided for reason of withdraw.","");
if ((theResponse != "") && (theResponse != null))
{
theForm.myreason.value = theResponse;
return(true);
}
}
TIA
if (theForm.asset_status_cd.options[theForm.asset_status_cd.selectedIndex].value=="WFD")
{
var theResponse = window.prompt("Choosing this status code will close all requests, are you sure you want to do this? Input space provided for reason of withdraw.","");
if ((theResponse != "") && (theResponse != null))
{
theForm.myreason.value = theResponse;
return(true);
}
}