DHTML Methods
Internet Explorer® 4 up only.
Prompts the user with a dialog to add the specified URL to the Favorites list.
external.AddFavorite ( sURL [ , sTitle ] )
sURL |
Required. URL for which a favorite is to be added to the Favorites list. |
sTitle |
Optional. Suggested title to be used in the Favorites list. The user is given the opportunity to change the title in the Add Favorite dialog. |
No return value.
Calling the AddFavorite method in client-side script yields the same dialog that is presented when the user selects Add to Favorites from the Favorites menu.
When executed, the following script prompts the user to add the current page to their Favorites list.
window.external.AddFavorite (
location.href, document.title );
Show me
external