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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

popup windows

Status
Not open for further replies.

newbee23

MIS
Jun 30, 2003
12
US
I am trying to get this to work:

<script>
window.alert( &quot;<%=vRequesterName%>, your Tooling Request has been saved.\nYou will receive an email confirmation!\n&quot;);

if ( window.confirm(&quot;Would you like to submit another request?&quot;))
{

window.open(&quot;toolingrequest.asp&quot;, &quot;toolingrequest&quot;, &quot;&quot;);

}

window.close();
</script>
</html>

It only goes through twice then it will close down the web page. Why doesn't it keep going until you finally click &quot;NO&quot; on the second window that says &quot;would you like to submit another tooling request.&quot; I need it to go through as many times as the user wants and right now it only goes twice.

Any suggestions?
 
Try using [tt]while()[/tt] instead of [tt]if()[/tt]... Think it solves your problem §;O)


Jakob
 
That didn't work. it just keeps asking me if i want to submit another request and never gets to the request form. Thanks....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top