Mike said:
Jim,
I need to use the response.redirect within the asp tags <% %>. How can I
use the <script> </script> statements inside the asp tags?
I cannot get it to work.
I call this the "message in a bottle" technique. ASP code can't
control the browser window directly, but it can operate the browser
remotely by sending it a script. Here's an example:
<%
If doWhatever = "yes" Then
%>
<script>
window.open("admin/view/wb_a_client_list.asp",
null, "height=500, width=760, status=yes, toolbar=no,
menubar=no, location=no");
</script>
<%
End If
%>
As to closing the original window, I can't imagine why you'd want to
do that. I mean, here's the visitor, surfing along, having a good
time, and all of a sudden you replace his browser window with one that
can't surf on to other pages (no address bar). I would hate a site
that did that. Actually, I would probably right-click the task bar
icon, close the window, restart IE, and never visit that site again.
Why are you trying to do this, anyway?
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*