<DIV><FONT face=Verdana size=1>Hi</FONT></DIV>
<DIV><FONT face=Verdana size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=1>I want to show a pop up (delete confirmation in my page) when user clicks on delete button.The pop up will show "Are you sure you want to delte-yes or no"</FONT></DIV>
<DIV><FONT face=Verdana size=1>If user clicks on yes, then my page should set a page variable names "dispatch" to "delete".ANd then call my form's post action, which will route it to the next page...</FONT></DIV>
<DIV><FONT face=Verdana size=1>how do i accomplish these two tasks for the onlye one button click?</FONT></DIV>
<DIV><FONT face=Verdana size=1>Thanks in advance,</FONT></DIV>
<DIV><FONT face=Verdana size=1>Sam.</FONT></DIV>
<DIV><FONT face=Verdana size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=1>My code below:</FONT></DIV>
<DIV><FONT face=Verdana size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=1></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT size=2>
<P>&lt;SCRIPT LANGUAGE="JavaScript"&gt;</P>
<P>function set(target) {document.forms[0].dispatch.value=target;}</P>
<P>&lt;/script&gt;</P>
<P></FONT>&lt;table border="1" width="100%"&gt;</P>
<P></P>
<P>&lt;tr&gt;</P>
<P>&lt;th&gt;</P><FONT size=2>
<P>&lt;html:submit onclick="set('delete');"&gt;Delete&lt;/html:submit&gt; </P></FONT>
<P>......</P>
<P>&nbsp;</P>
<P>so basically i want a pop up when user clicks the above Delete button (struts uses &lt;html:submit&nbsp; to generate a HTML button) and when i click on the yes on this pop up, i want the set(target) to get set</P>
<P>Thanks in advance for help,</P>
<P>Sam.</P></FONT></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! Search - <a href="http://search.yahoo.com/?fr=ad-mailsig-home">Find what you’re looking for faster.</a>