An applet is called from an HTML file and the applets HTML can be identified within the applet by using getDocumentBase(). When you say that the required HTML is in another Frame in the same window, is the other frame a different applet? Another frame in the same applet? What "window" are you referencing?
"JavaRanch, where the deer and the Certified play" - David O'Meara
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop