• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to Register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Java function to add favorites

Collapse

Unconfigured Ad Widget

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, 06: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