728x90
var targetDomain = window.location.href.match(/:\/\/(.[^/]+)/)[1];
console.log("targetDomain : "+targetDomain);
console.log("location.protocol : "+location.protocol );
console.log("location.host : "+location.host );
console.log("location.pathname : "+location.pathname );
console.log("location.search : "+location.search );
console.log("targetDomain : "+targetDomain);
console.log("location.protocol : "+location.protocol );
console.log("location.host : "+location.host );
console.log("location.pathname : "+location.pathname );
console.log("location.search : "+location.search );
728x90
'Script' 카테고리의 다른 글
script array clone (0) | 2015.12.11 |
---|---|
문자, 숫자 정렬 (0) | 2015.12.11 |
textarea 특정 위치에 원하는값 넣기 (0) | 2015.11.16 |
string boolean number 형변환 (0) | 2015.10.30 |
인터넷 익스플로러 교차스크립트 xss 기능 동작 우회 방법 (0) | 2015.10.28 |