<script>
if(confirm()) window.location="xxx.asp"
else
window.location="bb.asp"

解决方案 »

  1.   

    <script>
    if(confirm()) window.location="xxx.asp"
    else
    window.location="bb.asp"
    </script><script language=vbscript>
    if msgbox("???",1)=1 Then
     window.location="xxx.asp"
    else
    window.location="bb.asp"
    End If
    </script>
      

  2.   

    <script language=vbscript>
    if msgbox("???",1)=1 Then
     window.location="xxx.asp"
    else
    window.location="bb.asp"
    End If
    </script>
    在msgbox()方法中所出现的“是”、“否”、“取消”能否换成自己的文本?