<script language='Javascript'>
function select_new() {
var width=screen.width;
var height=screen.height-50;
var new_win = window.open('../index.html', '','width='+width+',height='+height+',location=yes,scrollbars=yes,resizable=yes,status=yes,menubar=yes,toolbar=yes,top=0,left=0');
댓글 8개
현재 내용만으로는 이유를 알기가 어려워 보여요.
<a href='javascript:window.close();'>닫 기</a>
이렇게 사용했는데 안된다는 말씀이신가요?
var width=screen.width;
var height=screen.height-50;
window.open('../index.html', '','width='+width+',height='+height+',location=yes,scrollbars=yes,resizable=yes,status=yes,menubar=yes,toolbar=yes,top=0,left=0');
self.close();
제가 구현할려는 것은 새창으로 페이지를 열고 자신은 닫게 하고 싶습니다.
파일을 참고하세요...우편번호 검색 입력창에 같은 기능이 구현되어있네요...^^
창이 뜨게 됩니다.
function select_new() {
var width=screen.width;
var height=screen.height-50;
var new_win = window.open('../index.html', '','width='+width+',height='+height+',location=yes,scrollbars=yes,resizable=yes,status=yes,menubar=yes,toolbar=yes,top=0,left=0');
window.close();
return false;
}
</script>
<a href='javascript:;' onclick="select_new();">새창은열고 현재창은 닫기</a>
이렇게 해보세요.......^^