Add to Favorites RRS feed

  • Question

  • User-221787929 posted

    Does anyone know how to create a link to add the site to the favorites in the mobile phone? I was trying the following on a mobile phone but no luck.

    <asp:LinkButton ID="LinkButton1" runat="Server" OnClientClick="javascript:window.external.AddFavorite('http://mysite.com', 'MySite');return false;">Add to Favorites</asp:LinkButton>

    Thursday, January 3, 2008 10:26 AM


  • User-340921419 posted

    <script language="JavaScript" type="Text/Javascript">

    <!-- // Hide script from older browsers //

    var urlAddress = http://www.adventwebdesign.net;

    var pageName = "Web Design";

    function addToFavorites() { if (window.external) { window.external.AddFavorite(urlAddress,pageName)
    } else { alert("Sorry! Your browser doesn't support this function.");
    } } // -->



    then just use a link

    href="javascript:addToFavorites()"><font color="#0000FF"
    face="Arial">Bookmark Page !</font></a>


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 3, 2008 1:48 PM