채택완료

로케이션에 대해 질문

2015-09-23 (수) 11:37:39 2,336

...(중략)...
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개

채택된 답변
+20 포인트

<script>
  win1 = window.open('','','location=yes,width=390,height=280');
  win1.location.href='sub_change.php?maker=' + '$maker';
</script>


이렇게 사용하세요. 제가 테스트 한건 잘돼네요.  

답변을 작성하려면 로그인이 필요합니다.