JavaScript Reference/Javascript Methods/AddFavorite

Материал из Web эксперт
Версия от 21:30, 25 мая 2010; (обсуждение)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"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>