<script language="Javascript"><!--
alert("alert警告框");    //这个框就可以满足你的要求了
confirm("confirm确认框");
prompt("prompt提示且输入框");
// --></script>

解决方案 »

  1.   

    <body>
    <a href='xxxx.html' onclick="alert('哥们,未成年人不能看!!!!');event.returnValue=false">ssssssssssss</a></body>
      

  2.   

    <a href='xxxx.html' onclick="return confirm('确实要继续?')">ssssssssssss</a>
      

  3.   

    <a href='xxxx.html' onclick="return confirm('确实要继续?')">ssssssssssss</a>
      

  4.   

    <script language="javascript">
    function winconfirm(){
    question = confirm("你确认要到“搜狐”吗?")
    if (question != "0"){
    window.open("http://www.sohu.com")
    }
    }
    </script>
    <a href="http://" onClick="winconfirm(); return false;"></a>
    按照以上代码写就可以了,没错的!!