JavaScript Reference/Javascript Methods/AddFavorite
"AddFavorite()" Example
<source lang="javascript">
<html> <head> <script language="JavaScript">
function function1() { window.external.AddFavorite("http://www.wbex.ru"); }
</script></head> <body> <button onclick="function1();"> Click here to add www.wbex.ru main page to your favorites </button> </body> </html>
</source>
"AddFavorite()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |external | +----------------+--------------------------------------------------------------+
</source>
"AddFavorite()" Syntax, Parameters and Note
<source lang="javascript">
Note: Add to the list of favorites.
Syntax:
window.external.AddFavorite(param1, param2)
Parameters:
param1 Required; the URL of the favorite element. param2 Optional; the user"s description. </source>