changing the target frame from the server side

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

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

what are the pros and cons of these two approaches and is there a
better way to do what I want?


Site Timeline