>웹 프론트엔드 >JS 튜토리얼 >JS는 현재 주소를 얻습니다. JS는 현재 URL 샘플을 얻습니다. code_javascript 기술

JS는 현재 주소를 얻습니다. JS는 현재 URL 샘플을 얻습니다. code_javascript 기술

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB원래의
2016-05-16 16:58:151107검색
复제대码 代码如下:

<테이블 너비=100% cellpadding=0 cellpacing=0 border= 0 >

thisDLoc = document.location;

thisURL = 문서.URL;

thisHREF = document.location.href;

thisSLoc = self.location.href;

<스크립트 언어="javascript">
thisTLoc = top.location.href;
thisPLoc = parent.document.location;
thisTHost = top.location.hostname;
thisHost = 위치.호스트 이름;
strwrite = "thisTLoc: [" thisTLoc "]"
strwrite = "thisPLoc: [" thisPLoc "]"
strwrite = "thisTHost: [" thisTHost "]"
strwrite = "thisHost: [" thisHost "]"
document.write( strwrite );

thisTLoc = top.location.href;

thisPLoc = parent.document.location;

thisTHost = top.location.hostname;

thisHost = 위치.호스트 이름;


성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.