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