上一页:document.referrer
当前:  location.href

解决方案 »

  1.   

    <html>
    <head></head>
    <body>
    <form name="form1" method="post" action="">
      <input type="button" name="Submit" value="按钮" onClick="javascript:alert(document.location);">
    </form>
    </body></html>
      

  2.   

    <html>
    <head></head>
    <body onload=alert(document.referrer)>
    <form name="form1" method="post" action="">
      <input type="button" name="Submit" value="按钮" onClick="javascript:alert(document.referrer);">
    </form>
    </body></html>