Hey all,
I have a little bit of JS on a page that isn’t working, and I cannot figure out why. If any body can spot where I am going wrong I’d very much appricitate it. The ASP poriton works fine, its just the script doesn’t run. What I am trying to achive is to open one page in a new window ([url]http://dynedrewnett/asp/chatroom/enter_chat_room.asp[url]http://dynedrewnett
Thanks.
[CODE]<%
IF len(Request.Cookies(“Nick”)) = 0 THEN ‘ Only populates the cookie if it is empty
Response.Cookies(“Nick”) = str_displayname
END IF
Response.Cookies(“Nick”).Expires = CDate(CStr(Date()) & ” 23:59:59″) ‘ Cookie expire at the end of the day
IF Request.Cookies(“Destination”) = “http://dynedrewnett/asp/chatroom/enter_chat.asp” THEN
%>
[COLOR=”Red”]<script language=”JavaScript”>
window.open(“http://dynedrewnett/asp/chatroom/enter_chat.asp”, “Dyne DrewNett Chat Room”, “toolbar=0,location=0,statusbar=0,menubar=0,width=8 00,height=600,left=128,top=128”);
document.location = “http://dynedrewnett”;
</script>[/COLOR]
<%
ELSE
Response.Redirect(Request.Cookies(“Destination”))
END IF
END IF
%>