|
#1
|
||||
|
||||
|
請教如何取得當前頁網址並將網址顯示在原始碼裡面?
代碼:
<script type="text/javascript">
//http://www.w3schools.com/htmldom/dom_obj_location.asp
document.write( location.href+"<br/>");
</script>
此篇文章於 2013-03-18 01:09 PM 被 Matt 編輯。 |