JavaScript Reference/Javascript Methods/ImportExportFavorites

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

"ImportExportFavorites()" Example

    
<html>
<body>
<script language="JavaScript">
function function1() {
    window.external.ImportExportFavorites(true, "http://www.wbex.ru");
}
</script>
<button onclick="function1();">Show dialog</button>
</body>
</html>



"ImportExportFavorites()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |external                                                      |
+----------------+--------------------------------------------------------------+



"ImportExportFavorites()" Syntax, Parameters and Note

Note:
This method controls the import and export of the browser"s favorites list.
    
Syntax:
    
window.external.ImportExportFavorites(param1, param2)
Parameters:
    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.