FAQ  
 

How can I call Response.Redirect from within a frame to overwrite the whole browser window?

Created 2001-04-06

Question:

How can I call Response.Redirect <url> from within a frame so that the results of that ASP do not appear in the frame,
but instead overwrite the whole browser window?  Currently, when I do this and the asp from which Response.Redirect is called is in a frame, it just overwrites the frame.

Answer:

Use

<%
Response.write "<SCRIPT Language=VBScript>" & vbCrLf
Response.write "  window.open "URL", "_top" & vbCrLf
Response.write "</SCRIPT>
%>

This will write client side script that will load a new URL into the top level window (i.e.overwrite the frameset) and replace it.

WinSyslog
 Home
 Articles
 FAQ
 Windows XP
 Seminars Online
 Forums
 Books
 Links
 Newsletter Archive
 Web Server Check
 Contact Us
 Search
 

 



Printer Version Send this page to a friend

Copyright © 1988-2005 Adiscon GmbH All rights reserved.
Contact us via Secure Web Response | Privacy Policy
Topic Links: syslog