JavaScript Reference/Javascript Methods/ImportExportFavorites

Материал из Web эксперт
Перейти к: навигация, поиск

"ImportExportFavorites()" Example

<script language="JavaScript">
function function1() {
    window.external.ImportExportFavorites(true, "");
<button onclick="function1();">Show dialog</button>

"ImportExportFavorites()" is applied to

| Applied_To     |external                                                      |

"ImportExportFavorites()" Syntax, Parameters and Note

This method controls the import and export of the browser"s favorites list.
window.external.ImportExportFavorites(param1, param2)
    param1   Required; true (import) or false (export).
    param2   Required; the URL to export or import. 
                       If param2 is an empty string (""), the method opens the 
                       file dialog box to find the local page to import.