網域名稱俱樂部

網域名稱俱樂部 (https://www.domainclub.org/index.php)
-   電腦網路相關技術 (https://www.domainclub.org/forumdisplay.php?f=16)
-   -   請教如何取得當前頁網址 (https://www.domainclub.org/showthread.php?t=34441)

Matt 2013-03-18 01:01 PM

請教如何取得當前頁網址
 
請教如何取得當前頁網址並將網址顯示在原始碼裡面?
代碼:

<script type="text/javascript">
    //http://www.w3schools.com/htmldom/dom_obj_location.asp 
    document.write( location.href+"<br/>");
</script>

3q3q


所有時間均為 +8。現在的時間是 03:42 AM

Powered by vBulletin® 版本 3.8.4
版權所有 ©2000 - 2024,Jelsoft Enterprises Ltd.