Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Getting the source file name in a frame


Message #1 by "arun" <arun@l...> on Thu, 7 Feb 2002 10:55:39 +0530
Hi Arun,

> Can i get the name of the file that is currently loaded into a particular
frame?

> for example i have 3 frames in a page, when the user clicks a link in the
frame1 i am loading a file into the
> frame2. My requirement is to get the file name that is loaded in the
frame2 in  frame3.

var FrameFileName=window.parent.frames[1].document.location;

HTH,

Chris




  Return to Index