How do i create a popup using javascript from an ASP page that answers a question and if i click yes the webpage will change to one page, if i click no it will change to a different one.
this kind of thing (but this code is giving me the option of ok & cancel instead of yes & No) :
<script>
function a()
{
if (confirm('Do you not want to add linear meters?'))
document.location.href="CreatePieces.asp"
else
document.location.href="CreateActions.asp"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.