Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Confirm Function

Status
Not open for further replies.

desiana

Programmer
Oct 31, 2001
23
0
0
MY
Currently I am doing a program using JSP. In that program I use JavaScript function "confirm". The problem is it appears twice although I only define it once. Do you have any ide what is wrong with it ? The portion of the coding is :

<%if(v_seq.size()==0) {%>
<script>
alert('No GDRN to be generated !');
window.close()
</script>
<%} else {%>
<script>
if(confirm(&quot;Are you sure you want to generate and print these GDRNs ?&quot;))
{
window.print()
location.href=&quot;mr_auto_gdrn_update.jsp&quot;
}
else
{
window.close()
}
</script>
<%}%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top