Generic Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version

## html-widget-new-document

Arguments: html-widget uri-string

This generic function is called when an `html-widget` has finished downloading a web page or loading a file. The default method calls the widget's on-new-document function if it has one, and otherwise does nothing. An application could add methods for an `html-widget` subclass.

html-widget is the `html-widget` that loaded the page.

uri-string is the URL of the web page that was downloaded, or the URI string for a file that was loaded (such as "file:///c:/dummy.txt").

An `html-browser` uses this generic function to display the URI in its status-bar if it has one, and also to add the URI to the history list in the dialog's combo-box. An application that uses an `html-widget` by itself could do similar things.

See the `html-widget` control.

Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version