Asra wrote:
Hello,
I have a frame's onload event calling a function which needs to know
which file was loaded. Is there any java object/method to determine
the file name or any type of file id?
Not sure about a java object/method, you might try a Java group.
JS can get it, rather simply actually, from the scenario you give:
<frame onload="someFunction(this.src)" src="someFile.html">
The onload event knows about its own tag, and document (if it has one),
and its src property and can explicitly pass it as an argument.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq