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

Auto redirect out of a frame

Status
Not open for further replies.

cyberprof

Programmer
Jun 10, 2003
229
GB
I am using a frameset on my webpage.

I have a hyperlink in the right hand side of the frame which links to an asp page. The asp page doesn't display anything, it just runs a series of commands to edit a database. Once the asp page has finished I use the following code to auto redirect back to the main site page:

<META HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;0; URL=default.asp&quot;>

This works, but displays 'default.asp' in the right hand section of the frame only. I have tried adding TARGET=&quot;NEW&quot;, but this has no effect.

Any ideas,

Cheers J
 
Are you trying to load default.asp in the right hand frame or in the main page?

TwoOdd
--------------
Good judgment comes from experience, and experience comes from bad judgment.
-- Barry LePatner
 
its pretty simple. first lets try ur method. try target=&quot;top&quot; if that doesnt work then we have to use javascript:
top.lcoation.href=&quot;Page&quot;

Known is handfull, Unknown is worldfull
 
I am trying to load default.asp in the main page, at the moment, default.asp is opening in the right hand section of the frame.

I have tried target=&quot;top&quot;, this doesnt work.

Cheers J
 
how about the javascript?

Known is handfull, Unknown is worldfull
 
like this:
<a href=&quot;javascript:top.location.href='Page_here'&quot;>Link</a>

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top