public URL getDocumentBase ()

Gets the URL of the document in which this applet is embedded. For example, suppose an applet is contained within the document:

    http://www.oracle.com/technetwork/java/index.html
 
The document base is:
    http://www.oracle.com/technetwork/java/index.html
 

Returns:  the java.net.URL of the document that contains this applet.

See also:
java.applet.Applet.getCodeBase()