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?
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;