Re: top.location.replace()
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: top.location.replace()

From: Alan Little <alan@n-o-s-p-a-m-phorm.com>
Date: Mon Mar 20 2006 - 00:40:27 CET

Carved in mystic runes upon the very living rock, the last words of
TheBagbournes of comp.lang.javascript make plain:

> Alan Little wrote:
>> Do a search at this site:
>>
>> http://www.mindsift.com/
>>
>> Select a non-sponsored link, then give the site a rating. The rating
>> frame closes. Now click your "back" button. If you're using IE,
>> you'll go back to the search results. This is the desired behavior.
>> In NS, FF and Opera, it takes you back to the frameset. I'm using
>> top.location.replace; from my understanding that should do it. I
>> *hate* it when only IE does what I want.
>>
>> Any ideas why this doesn't work, or how I can achieve the desired
>> behavior? I inherited this code from someone else. I tried using the
>> closeframe() method which they used for the "remove this frame" link,
>> but that just closes the frame, and leaves the history entry, so that
>> you still have to back up twice to get to the search results.
>
> IIRC, top.location.replace is IE only.

I can't find anything that says that, and I'm able to reference the top
object for other things (I also tried parent) and use the replace method
in other browsers, just not together.

-- 
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Received on Mon May 1 04:15:37 2006