JS是客户端脚本,可以通过PHP输出JS脚本来达到你想到的效果
比如弹出对话框echo "<script>alert('hello!');</script>";

解决方案 »

  1.   

    客户端用VBS写,可控制的消息对话框更多。MsgBox(prompt[, buttons][, title][, helpfile, context])查MS脚本帮助的VBScript部分。szMsgBox = "<script language='VBScript'>MyVar = MsgBox ('Hello World!', 65, 'MsgBox Example')</script>"
      

  2.   

    echo "<script>alert('hello!');</script>";
    就可以了。
      

  3.   

    如果是 需要点击弹出可以用  onclick='return confirm("你真的要删除吗!删除将不可恢复!!")' 
    如果不是就可以用楼上的 echo "<script>alert('hello!');</script>";了
      

  4.   

    js中嵌php
    <script language="JavaScript">
    <?php
    echo "alert(\"test!\");";
    ?>
    </script>php中嵌js
    <?php
    echo "<script>\n";
    echo "alert(\"test!\");\n";
    echo "</script>"
    ?>呵呵,简单了点,希望能明白。