|
Posted by jvc214 on May 10, 2005, 7:44 am
Please log in for more thread options
I have an application that uses multiple frames. Normally the links in
a frame target the frame they are in, except when "something special"
occurs on the server side for the request. When that special something
happens, I need to target _top or top (the top level browser window). I
have two approaches and I am open to others:
1. I respond to the request with javascript that has:
top.location.href = /where/I/really/want/the/top/to/go
2. I respond with html consisting of:
<base target="top"><meta http-equiv=refresh
content="0;url=/where/I/really/want/the/top/to/go">
what are the pros and cons of these two approaches and is there a
better way to do what I want?
-Jim
|