WebKit2.WebView.prototype.load_alternate_html

function load_alternate_html(content: String, content_uri: String, base_uri: String): void {
    // Gjs wrapper for webkit_web_view_load_alternate_html()
}
  

Load the given content string for the URI content_uri. This allows clients to display page-loading errors in the WebKit2.WebView itself. When this method is called from WebKit2.WebView::load-failed signal to show an error page, the the back-forward list is maintained appropriately. For everything else this method works the same way as WebKit2.WebView.prototype.load_html.

content

the new content to display as the main page of the web_view

content_uri

the URI for the alternate page content

base_uri

the base URI for relative locations or null