AppletContext ac = getAppletContext(); URL oldURL = getDocumentBase(); try { URL newURL = new URL(getParameter("newhost") + oldURL.getFile()); ac.showDocument(newURL); } catch (MalformedURLException e) { }