로그인페이지로 안가요

· 2012-09-10 (월) 14:56:58 · 1081 · 3
그누보드는 아니지만..
 
함 봐주세요
 
<SCRIPT LANGUAGE="JavaScript">
< !--
var conFlag = true;
function entryEvent(){
var doc = document.surveyForm;
if(!<?=$printJsCheckDate?>){
alert("이벤트 응모날짜가 아닙니다. 해당응모 날짜에 응모해 주시길 바랍니다.");
return;
}
if( "<?=$cookie_id?>" == "" ){
alert('로그인 후 이벤트에 응모해 주시길 바랍니다.');
window.location=='http://www.naver.com';
return;
}
if(doc.contents.value == '' || conFlag == true){
alert('신청사유를 꼭 작성해주세요.');
document.surveyForm.contents.value="";
conFlag = false;
return;
}
doc.mode.value = "add";
doc.target = "hiddenIfm";
doc.action = "event_action.php";
doc.submit();
}
function hiddenContents(){
if(conFlag == true){
document.surveyForm.contents.value="";
conFlag = false;
}
}
//-->
< /SCRIPT>
<form name="surveyForm">
< input type="text" name="contents" class="itext3" title="▼신청인원/신청사유를 꼭 작성해주세요.(150자내외)" value="▼신청인원/신청사유를 꼭 작성해주세요.(150자내외)" onClick="javascript_:hiddenContents();"/><input type="image" src="../event/20120911_cookingclass/btn_request.gif" class="btn_ok" value="" title="응모하기"onClick="javascript_:entryEvent();" />
</form>
왜 로그인안했을때 경고창은 뜨는데 이동을 안하져?
뭐가 잘못된건가영?
|

댓글 3개

2012-09-10 (월) 16:31:18
window.location <---

document.location.href =
2012-09-10 (월) 16:40:45
그래도 안되네여 ;; 뭐가 문제인건지 답답하네영 돌삐님 감사합니다
window.parent.location.href=
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

202,899건
+
제목 글쓴이 날짜 조회
12-09-10 조회 1,274
12-09-10 조회 1,303
12-09-10 조회 1,387
12-09-10 조회 1,288
12-09-10 조회 1,263
12-09-10 조회 1,546
12-09-10 조회 1,479
12-09-10 조회 1,352
12-09-10 조회 1,258
12-09-10 조회 1,383
12-09-10 조회 1,602
12-09-10 조회 1,249
12-09-10 조회 1,237
12-09-10 조회 1,324
12-09-10 조회 1,284
12-09-10 조회 1,082
12-09-10 조회 1,249
12-09-10 조회 1,286
12-09-10 조회 1,240
12-09-10 조회 1,529