Announcement

Collapse
No announcement yet.

Java function to add favorites

Collapse

Ads on showthread pages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Java function to add favorites

    WordPress Hosting on SSD Servers
    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, 07:06 AM.

  • #2
    ASP.Net Hosting starts @ $3.18/Mo.
    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
    Sign up for a News Letter Click here to sign up