How do i create a popup using vbscript 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.
i'm not using the msgbox function, i'm using confirm. couldnt get the vbYesNo to work.Let me know if you know how to do the following below as a vbYesNo instead.
thanx
I'm using :
<script>
function a()
{
if (confirm('Do you not want to add linear meters?'))
document.location.href="CreatePieces.asp"
else
document.location.href="CreateActions.asp"
Something like this ?
<script language=VBScript>
Function a()
If MsgBox("Do you not want to add linear meters?",vbYesNo)=vbYes Then
document.location.href="CreatePieces.asp"
Else
document.location.href="CreateActions.asp"
a=False
End Function
</script>
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.