[Javascript] Call history.go(-1) in an iFrame from another frame

Julien Nadeau junado at junado.com
Tue Nov 15 16:23:35 CST 2005


Good evening,

I've been looking around for some time for a solution to a problem I  
have and I can't find anything that works well. I have an iFrame  
embedded in a <div> in which I display various content. I need to  
have a "back" link in the <div>, but *outside* the iFrame itself.

I tried various solutions but nothing works in all browsers (Firefox/ 
Safari/Internet Explorer).

Here's something that works in Firefox, but not in Safari :

	window.frames.floatFrame.history.go(-1);

My iFrame has name="floatFrame" and id="floatFrame".

Thank you very much,

Julien Nadeau
junado at junado.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20051115/6058b206/attachment.htm>


More information about the Javascript mailing list