如果這網頁上有以下JavaScript 程式碼
- <script type="text/javascript">
- //http://www.w3schools.com/htmldom/dom_obj_location.asp
- document.write("location.href : "+location.href+"<br/>");
- document.write("location.protocol : "+location.protocol+"<br/>");
- document.write("location.hostname : "+location.hostname+"<br/>");
- document.write("location.host : "+location.host+"<br/>");
- document.write("location.port : "+location.port+"<br/>");
- document.write("location.pathname : "+location.pathname+"<br/>");
- document.write("location.search : "+location.search+"<br/>");
- document.write("location.hash : "+location.hash+"<br/>");
- </script>
- location.href : http://functionlab.org:80/tools/tcpproxy.php?user=FUNction#showscript
- location.protocol : http
- location.hostname : functionlab.org
- location.host : functionlab.org:80
- location.port : 80
- location.pathname : /tools/tcpproxy.php
- location.search : ?user=FUNction
- location.hash : #showscript
沒有留言:
張貼留言