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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

response.redirect out of a frame

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Hey gang,

I have an exit button on a page that takes up the bottom frame of a frames page. When its clicked, I want the main page to show up, but instead of taking up the whole screen, it just shows up in the bottom frame. Any way around this?

Thanks,

Jack
 
try using <input type=button name=exit onclick='top.location=mypage.asp'>
 
Hey cb, thanks for the response.

I ended up using this javascript to get it to work:
<script language=&quot;JavaScript&quot;>
if (top != self) {
top.location = location
}
</script>

I tried a similar way to what you suggested, but I'm using asp.net, and with the new code behind it utilizes, it makes using buttons a little trickier.

Thanks for the response though, I appreciate it and its good to see different ways to tackle the same problem.
:)

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top