This method of the Document class retrieves the URL.
public final String getURL();
Returns the last URL sent to the load() method or null if an input stream was used.