<div>I've seen javascripts which does something like your talking about.</div>
<div> </div>
<div>Basically the origional page calls a function to determine if it should submit, this produces a popup html page which the user can do anything they want with. Once the user select the exit path from the page it closes and the return value of the window is captured by the origional window and determins what to do next.</div>
<div> </div>
<div>You need to add the next few lines in you original page function that is calle on submit</div>
<div> </div>
<div>rtn = window.openModalDialog(X1);</div>
<div> </div>
<div>if (rtn != '/* determine if return value is confirm | yes | no | reject */ ) {</div>
<div>
<div> document.form.action=X2;
<div> document.form.method='get';
<div> document.form.submit();</div>
<div>}</div>
<div> </div>
<div>In the popup page that X1 displays you have the following javascript function and link it to onunload</div>
<div> </div>
<div>function shutdown() {</div>
<div> window.returnValue=/* determine what should be returned */;</div>
<div>}</div>
<div> </div>
<div><body onunload="shutdown();"></div>
<div> </div>
<div>I hope you can gain some understanding, personally I try to avoid the web front end of all the java applications i've worked on. I don't have an eye for graphics so everything looks rubbish.</div>
<div> </div>
<div>John</div>
<div> </div>
<div> </div></div></div></div>