Results 1 to 3 of 3

Thread: Add to Favourites, Add to active desktop,Make homepage

  1. #1
    anoop007
    Guest
    I am in need for JS functions for :

    Add to Favourites
    Add to active desktop
    Make homepage

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    for Make HomePage:
    Code:
    <input type="button" value="Set this page as your home page!" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.yahoo.com');">
    works with IE, not very great with JS, so may not work everywhere

    for bookmark...
    Code:
    function bookmark(){
    if (navigator.appName == "Microsoft Internet Explorer") {
        var url="http://www.Yahoo.com";
        var title="Yahoo!";
        window.external.AddFavorite(url,title);
        }
        else {
        alert("Please press CTRL+D to bookmark this page.");
        }
    }
    should do the trick.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    anoop007
    Guest
    thanks!..

    perfect for me!

    who cares about NS.. I wanted it to work
    with IE only.. NS was just a bonus!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width