We help IT Professionals succeed at work.

Response.Redirect top URL

swinslow
swinslow asked
on
I have a page that is set up in frames (two windows ...TheMain and TheNav within Index.asp)
I would like to know how I can use response.redirect on the page that is in either the TheMain window or TheNav window to change the top URL to lets say Elvis.asp.

Soren
Comment
Watch Question

you would have to use something like this I believe:

Response.Write "<SCRIPT language=javascript>" & vbCrLf & _
  "<!--" & vbcrlf & _
  "top.location.replace('Elvis.asp');" & vbcrlf & _
  "//-->" & vbCrLf & _
  "</SCRIPT>"

you can also use:

top.frames("FrameName").location.replace.... in place of the top.location...

hope this helps!

Author

Commented:
Works like a charm!!

Thanx,
Soren
glad I could help!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.