[JavaScript] HTTP프로토콜 HTTPS로 변경
1
2
3
4 |
// HTTP프로토콜 HTTPS로 변경
if (document.location.protocol == 'http:') {
document.location.href = document.location.href.replace('http:', 'https:');
} |
cs |
'개발 > Java' 카테고리의 다른 글
이클립스에서 주석 한글깨짐 해결방법 (4) | 2013.08.14 |
---|---|
이클립스 오류코드(에러메세지)로 해결방법 찾아내기 (0) | 2013.04.24 |
[JavaScript] 자바스크립트로 네이버 자동로그인 만들기 (13) | 2012.04.25 |