忘了說明﹐我是用response.write "<script>alert('...'); window.location='...'</script>"這樣來轉移的

解决方案 »

  1.   

    history.previous?自己制造的属性吧为什么不用history.back()呢?你用那个方法跟history.back(),有什么区别么?
      

  2.   

    response.write "<script>alert('...');window.location='history.go(-1)'; </script>"
      

  3.   

    response.write "<script>alert('...');location.href='history.go(-1)'; </script>"
      

  4.   

    完了﹗沒有全部說明﹐讓大家誤會
    在a.asp中有一下代碼
    response.write "<script>alert('...'); window.location='...'</script>"然后在b.asp的使topage的value=上一頁的地址
    <input type="text" name="topage" value="">用<%=request.servervariables("http_referer")%>這個也不行
    history.previous是從書找到的﹐我也懷疑其意義
      

  5.   

    服务器端用:
    request.servervariables("HTTP_REFERER")客户端用:
    document.referrer