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

redirecting to a page without frames

Status
Not open for further replies.

ching0418

MIS
Mar 6, 2002
96
HK
hello,

i have a page with frames...in my left frame, i have a vb script with a line using response.redirect. i want the whole page to be changed (without frames)...but when i execute it, only the left frame is redirected to the page.

please help!

TIA,
ching
 
newURL = "SomePage.asp"

%>
<script>
top.location=&quot;<%=newUrl%>&quot;
</script>
<%

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
or u can also use this:
<a href=&quot;redirect.asp&quot; target=&quot;_top&quot;>Redirect</a>

redirect.asp
<%
response.redirect &quot;somePage.asp&quot;
%>

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

Part and Inventory Search

Sponsor

Back
Top