[Javascript] Re: Javascript Digest, Vol 33, Issue 11

Laurent Muchacho elmuchacho at gmail.com
Fri Nov 18 02:36:25 CST 2005


Hi 

 

This work

window.frames['floatFrame'].history.back()

because you are accessing the frame in the window named "floatFrame"

This doesn't work

Window.frames.floatFrame.history.back()

Because you are trying to access a function, object or property of the
Frames Array object of the window

 

Laurent 

 

Ps: I will post an examples if you need too

 

 

  _____  

From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
On Behalf Of Rajeev Ranjan Lall
Sent: 17 November 2005 06:20
To: javascript at latech.edu
Subject: [Javascript] Re: Javascript Digest, Vol 33, Issue 11

 

Hi Julien Nadeau,

 

It's quite simple.

 

use the following code.
___________________________________________________

<div style="width:700px;height:600px; overflow:auto;>

<a href="javascript:history.back();">Back</a>
<iframe src="www.abc.com" scrolling="yes"></iframe>

</div>

_____________________________________________

 

customize the above as per your need. Now if you open the page and surf in
iframe, the back button will call the previous(if any) pages in iframe only.

 

hope this will end your query.

 

Rajeev Ranjan Lall

 

 

On 11/16/05, javascript-request at latech.edu <javascript-request at latech.edu >
wrote: 

Send Javascript mailing list submissions to
       javascript at LaTech.edu 

To subscribe or unsubscribe via the World Wide Web, visit
       https://lists.LaTech.edu/mailman/listinfo/javascript
or, via email, send a message with subject or body 'help' to 
       javascript-request at LaTech.edu

You can reach the person managing the list at
       javascript-owner at LaTech.edu  <mailto:javascript-owner at LaTech.edu> 

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Javascript digest..."


Today's Topics:

  1. Call history.go(-1) in an iFrame from another frame 
     (Julien Nadeau)


----------------------------------------------------------------------

Message: 1
Date: Tue, 15 Nov 2005 17:23:35 -0500
From: Julien Nadeau < junado at junado.com <mailto:junado at junado.com> >
Subject: [Javascript] Call history.go(-1) in an iFrame from another
       frame
To: "[JavaScript List]" <javascript at LaTech.edu> 
Message-ID: <B1C790D6-1923-435C-87C4-507AE124078B at junado.com>
Content-Type: text/plain; charset="us-ascii"

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.LaTech.edu/pipermail/javascript/attachments/20051115/6058b206/a
ttachment-0001.html 

------------------------------

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


End of Javascript Digest, Vol 33, Issue 11
******************************************

 

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


More information about the Javascript mailing list