I am writing javascript in a page with an IFRAME that references an HTML file with thumbnail images created by a JAlbum (photo album processing software) skin. The HTML file replaces itself with the next set of images (another HTML file) if you click on its NEXT arrow. The issue is that I need to get the filename of the CURRENT HTML file, not the original HTML file. When I use <iframe onload=”functionname(this)”>, it seems to pass the original HTML source object, not the current one. So within functionname if I try alert(parameter1.src), I get the original filename, not the new one.
Here’s the IFRAME Code:
[CODE]<iframe src=”../../photos/index.htm” name=”galleryFrame” align=”left” frameborder=”0″ height=”100″ width=”800″ scrolling=”no” onload=”getThumbNames(this);”></iframe>
and here’s the relevant portion of the function it activates:
[CODE]function getThumbNames(frameOb) {
indexURL = frameOb.src;
alert(indexURL);
}
Any ideas?