현재 페이지(접속해 있는)의 주소(URL)를 javascript로 알아내기

location.href 또는 document.location.href

 

사용 예>

<script tyle="text/javascript">

<!--

alert(location.href)

//-->

</script>

Posted by 은둔고수