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