2010년 7월 26일 월요일

JavaScript에서 Target 지정하기

_top : top.location='주소';
_self : self.location.href='주소';
_parent : _parent.window.location='주소';

프레임을 사용했을 경우(프레임 파일에서)
document.frames['프레임명'].location='주소';
document.frames[숫자].location='주소';

프레임의 자식(프레임에 지정된 파일)에서는 parent를 붙인다.
parent.document.frames['프레임명'].location='주소';
parent.document.frames[숫자].location='주소';

댓글 없음:

댓글 쓰기