asp.net.ph

Skip Navigation Links

AddFavorite Method

DHTML Methods


Internet Explorer® 4 up only.

Prompts the user with a dialog to add the specified URL to the Favorites list.

Syntax

external.AddFavorite ( sURL [ ,  sTitle ] ) 
Parameters

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.

Return Value

No return value.

Remarks

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.

Example

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 

Applies To

external



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note