SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jun 2000
    Location
    San Antonio, TX, USA
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How would you make a link that allows viewers to simply click it and change their browser's default homepage to your site (or whatever site you specify). Is there a way to do this that works for all browsers (or at least IE and Netscape)?

    Thanks in advance.

  2. #2
    SitePoint Wizard
    Join Date
    Sep 1999
    Posts
    1,390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You would use javascript for that.

    I can't give you the code off the top of my head, but I know it is at http://www.javascript.com/ Also you might want to look at http://builder.com/

    Good luck!

    ------------------
    http://redrival.com/trcfreebies/
    Get more hits, for free!

  3. #3
    ********* Scotland Saltire's Avatar
    Join Date
    Jan 2000
    Location
    Scotland
    Posts
    660
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is what you are looking for:

    javascript:startPage();



    ------------------
    Methven Online - www.methven.org.uk
    Subtle Measures - www.subtle-measures.co.uk

  4. #4
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Leeds, UK
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you could also do this, which works in both NS/IE right down to v3 of each I believe:

    <CODE><a style="cursor:hand" href onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('Your Homepage')">
    Homepage</a></div></CODE>

    The problem I face is, trying to get it to autoset the homepage, without prompting the user when they click the Homepage button.

    Hell.



Bookmarks

Posting Permissions

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