M
Mark
I've searched a bunch of groups, and they say this can be done, but for
some reason, I can't get it to work.
Here's my ASP page:
<% @ Language=VBScript %>
<Script language=javascript>
function cont(strTitle){
if("undefined"!=typeof strTitle){
window.opener.location='somepage.asp?title=' + strTitle;
window.close();
}
else
window.close();
}
</script>
<%
strTitle=Upload.form("title")
Do Stuff
cont(strTitle)
%>
<body ONLOAD="cont(<%=strTitle%>">
</body>
What I want to happen, is if this page gets called from a form and
title is null or undefined, then close the window. Otherwise, do
something, then close the window with the javascript call.
Thanks,
- Mark
some reason, I can't get it to work.
Here's my ASP page:
<% @ Language=VBScript %>
<Script language=javascript>
function cont(strTitle){
if("undefined"!=typeof strTitle){
window.opener.location='somepage.asp?title=' + strTitle;
window.close();
}
else
window.close();
}
</script>
<%
strTitle=Upload.form("title")
Do Stuff
cont(strTitle)
%>
<body ONLOAD="cont(<%=strTitle%>">
</body>
What I want to happen, is if this page gets called from a form and
title is null or undefined, then close the window. Otherwise, do
something, then close the window with the javascript call.
Thanks,
- Mark