javascript得到当前页的来路即前一页地址的方法

复制代码 代码如下:

  <script language="javascript">

  alert(document.referrer);

  </script>