JavaScript Reference/Javascript Methods/ImportExportFavorites — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
| |
Текущая версия на 08:22, 26 мая 2010
"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.