<a href="xxx.htm" onclick="if(!confirm('ok?')) return false;">ss</a>

解决方案 »

  1.   

    <a href="xxx.htm" onclick="return(confirm('sure?'))">ss</a> 
      

  2.   

    一个使用实例,您可以用在退出系统欢迎提示确定是否删除信息等
    <a href="http://www.t168.com" onclick="return(confirm('您确定要来我家吗?              \n\n\n      龙翔娱乐城\n---------------------------\nhttp://www.t168.com'))">退出系统</a>
      

  3.   

    <a href="xxx.htm" onclick="return(confirm('sure?'))">ss</a>
      

  4.   

    <script language="vbscript">
    function exitsystem
    if msgbox ("您确定要退出系统吗?",vbYesNo+vbQuestion,"退出确定")=vbYes then
    window.parent.close 
    end if
    end function
    </script>