Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting to _top 3

Status
Not open for further replies.

Light777

Programmer
May 15, 2003
32
US
I am running my ASP code from an Iframe and need the redirect URL to take up the full screen instead of just the Iframe. Any ideas?
 
I use javascript to break out of my frame and redirect the parent back to the index page. i.e.
Code:
<%session.abandon%>
<html>
<head>
	<Script Language=&quot;JavaScript&quot;>
	<!--
	setTimeout (&quot;changePage()&quot;, 0);
	function changePage() {
		if (self.parent.frames.length != 0)
		self.parent.location= &quot;index.asp&quot;;
	}
	// -->
	</script> 
</head>
<body>
</body>
</html>
Just use the abobe code in a page called logout.asp (or whatever) and navigate to that page.

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top