Many applet viewers require that the applets originate from the same server.
Both methods, if successful, give the caller one or more Applet objects. Once the caller finds an Applet object, the caller can invoke methods on the object. By default, an applet has no name. For an applet to have a name, one must be specified in the HTML code that adds the applet to a page. Below are two applets that illustrate lookup by name.