ImportExportFavorites Method

DHTML, HTML, & CSS

 
Click to return to the DHTML, HTML & CSS home page    
hasChildNodes Method     inRange Method     DHTML Methods    

ImportExportFavorites Method


Imports or exports Favorites information.

Syntax

window.external.ImportExportFavorites(bImportExport [, sImportExportPath])

Parameters

bImportExportRequired. Boolean that specifies one of the following values:
trueImport is requested.
falseExport is requested.
sImportExportPathOptional. String that specifies the location (URL) to import or export, depending on bImportExport. If a value is not provided, a file dialog box is opened.

Return Value

No return value.

Remarks

Confirmation is required before the import or export begins.

All favorites are uploaded to the server when exported, and it is recommended that the server be configured to erase previously stored favorites before accepting the updates. Favorites imported from the server merge with existing favorites on the client. Deletions on the server do not propagate to the client.

This method is not supported in html applicationsInternet Link.

Example

This example uses the ImportExportFavorites method to import Favorites information from the server.

// 'true' specifies that the Favorites are imported from the server.
window.external.ImportExportFavorites(
     true,"http://www.your_server.com");

This example uses the ImportExportFavorites method to export Favorites information from the server.

// 'false' specifies that the Favorites are exported to the server.
window.external.ImportExportFavorites(
     false,"http://www.your_server.com");

This example uses the ImportExportFavorites method to open a file dialog box.

// If the path is not provided, a dialog box is opened.
window.external.ImportExportFavorites(false);

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
external

See Also

netscape bookmark file formatInternet Link


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.