iframe에서 상위페이지 전환하기
iframe에서 상위페이지 전환하기
출처: http://nwow.pe.kr/category/%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D/HTML(javascript)
|
parent.location.href('http://nwow.pe.kr'); |
설명:
1.html페이지에서 iframe으로 2.html이 들어가있는 경우에 2.html에서 페이지 전환을 하려면 iframe 내부만 페이지 전환이 되게 됩니다.
이때 1.html의 페이지를 전환 하려면 위와 같이 사용하면 됩니다