js獲取上一頁(yè)url

字號(hào):


    查看效果:js獲取上一頁(yè)url
    <html>
    <head>
    <title>js獲取上一頁(yè)url,js獲取前一頁(yè)地址,javascripts獲取上一頁(yè)url,javascript獲取前一頁(yè)地址</title>
    <meta http-equiv="keywords" content="" />
    </head>
    <body>
    <script language="javascript">
    document.write("js獲取當(dāng)前域名"+window.location.host+"或者"+document.domain+"<br>");
    document.write("js獲取當(dāng)前url"+window.location.href+"<br>");
    document.write("js獲取上(前)一頁(yè)url"+document.referrer);
    </script>
    </body>
    </html>