2,
<javascript ...>
function doPost() {
   document.form_artu.submit();
}
</javascript>
<form name="form_artu">
   <a href="http://www.chinajavaworld.net/forum/team.cgi" onclick="javascript:doPost()">阿土</a>
</form>

解决方案 »

  1.   

    1)<a href="del.asp" target="_blank">del.asp
    --------
    <body onunload="window.opener.location.reload()">
    2)
    <form id=form1 name="form1"></form>
    <a href="javascript:void(0)" onclick="document.form1.submit()">3)
    <script language=vbscript>
    msgbox "hello", 3
    MsgBox(prompt[, buttons][, title][, helpfile, context])Constant Value Description 
    vbOKOnly    0 Display OK button only. 
    vbOKCancel    1 Display OK and Cancel buttons. 
    vbAbortRetryIgnore    2 Display Abort, Retry, and Ignore buttons. 
    vbYesNoCancel    3 Display Yes, No, and Cancel buttons. 
    vbYesNo    4 Display Yes and No buttons. 
    vbRetryCancel    5 Display Retry and Cancel buttons. 
    vbCritical 16 Display Critical Message icon.  
    vbQuestion 32 Display Warning Query icon. 
    vbExclamation 48 Display Warning Message icon. 
    vbInformation 64 Display Information Message icon. 
    vbDefaultButton1    0 First button is default. 
    vbDefaultButton2  256 Second button is default. 
    vbDefaultButton3  512 Third button is default. 
    vbDefaultButton4  768 Fourth button is default. 
    vbApplicationModal    0 Application modal; the user must respond to the message box before continuing work in the current application. 
    vbSystemModal 4096 System modal; all applications are suspended until the user responds to the message box. The MsgBox function has the following return values:Constant Value Button 
    vbOK 1 OK 
    vbCancel 2 Cancel 
    vbAbort 3 Abort 
    vbRetry 4 Retry 
    vbIgnore 5 Ignore 
    vbYes 6 Yes 
    vbNo 7 No 
      

  2.   

    1、让页面cache立即过期,在jsp页加入以下代码即可:
    response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
    // or response.setHeader("Cache-Control","no-store");//HTTP 1.1
    response.setHeader("Pragma","no-cache"); //HTTP 1.0
    response.setDateHeader ("Expires", 0); //prevents caching at the proxy server2、document.formname.submit();3、javascript只能显示是和否,用confirm()方法,如果要进行你说的控制需要用vbscript,如下是个例子:
    <input type=button value=click onclick="vbscript:x()">
    <script language=vbscript>
    function x
    msgbox "content",1,"title"
    end function
    </script>
    第二个参数就是控制这些按钮样式的啦,你可以自己试试
      

  3.   

    一楼的说的对,可以加函数,或都删除页面加一个redirect
      

  4.   

    呵呵,我来答问题3
    <script language="javascript">
    function con(){
    var truthBeTold = window.confirm("单击“确定”继续。单击“取消”停止。");
    if (truthBeTold) {
    window.alert("欢迎访问我们的 Web 页!");
    }  else  window.alert("再见啦!");}
    </script>
      

  5.   

    我倒,一后的方法不是最好的解决办法,对于jsp的cache问题,即使刷新和重定向也不是一定能解决的,因此让cache立即过期才是最好的解决办法,居然还有人同意呢!faint
      

  6.   

    让cache过期后,返回显示用户列表的那页,浏览器说网页已经过期不能查看,怎么办??
    把response.setHeader("Cache-Control","no-cache");放到那个文件中?是有用户列表页,还是处理数据的文件??