JavaScript Reference/Javascript Methods/ImportExportFavorites

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

"ImportExportFavorites()" Example

   <source lang="javascript">
   

<html> <body> <script language="JavaScript"> function function1() {

   window.external.ImportExportFavorites(true, "http://www.wbex.ru");

} </script> <button onclick="function1();">Show dialog</button> </body> </html>


     </source>
   
  


"ImportExportFavorites()" is applied to

   <source lang="javascript">

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

     </source>
   
  


"ImportExportFavorites()" Syntax, Parameters and Note

   <source lang="javascript">

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.
   
     
     </source>