AvailabilityDOM Level 2 HTML SynopsisHTMLDocument createHTMLDocument(String title); Arguments
ReturnsThe new HTMLDocument object. DescriptionThis method creates a new HTMLDocument object with a skeletal document tree that includes the specified title. The documentElement property of the returned object is an <html> element, and this root element has <head> and <body> tags as its children. The <head> element in turn has a <title> child, which has the specified title string as its child. createHTMLDocument( ) is defined not by the DOMImplementation interface but by its HTMLDOMImplementation subinterface. If an implementation supports the "HTML" feature, its DOMImplementation object implements this method. See AlsoDOMImplementation.createDocument( ) |