Java function to add favorites

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Manuel_
    Banned
    • May 2005
    • 120

    Java function to add favorites

    If you want to make browser compatible "Add to Favorites" then check the below mentioned code

    function addfav(){
    if(window.external)
    {
    window.external.AddFavorite(
    "http://www.thejackol.com", "the jackol's den");
    return false;
    }
    return true;
    }And you call it like this:

    Add to favourites
    Last edited by admin; 08-12-2015, 06:06 AM.
  • AvailHosting
    Junior Member
    • Feb 2011
    • 4

    #2
    Re: Java function to add favorites

    Add the following code between the <BODY></BODY> tags of your html page.
    <a href="javascript:window.external.AddFavorite('http ://www.java-scripts.net', 'Java-scripts.net')">Click here to add Java-scripts.net to your favorites</a>

    Comment

    Working...
    X