로케이션에 대해 질문
본문
...(중략)...
if($count>=3) {
echo"서브게시물 바뀜
<script>
winobject = window.open"","","location=yes,weidth=390,height=280")
winobject.location.href = "sub_change.php?maker=".$maker
</script>";
}
...(중략)...
카운터가 3이상이면 윈도우 새창을 뛰워 결과감을 출력할려고 하는데여
새창까지는 뜨는데 로케이션이 안먹여여 어케해야돼죠..
갈켜줄세여..
자바스크립트는 될때두 있구 안될때두 있구..ㅜㅜ< br>
답변 1
<script>
win1 = window.open('','','location=yes,width=390,height=280');
win1.location.href='sub_change.php?maker=' + '$maker';
</script>
이렇게 사용하세요. 제가 테스트 한건 잘돼네요.
답변을 작성하시기 전에 로그인 해주세요.