automatically set homepage

Discussion in 'General Software' started by jaffacake2000, Sep 3, 2002.

  1. jaffacake2000

    jaffacake2000 Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    how do i set a users browser home page automatically when they vist my website ?
     
  2. Sniper

    Sniper Administrator Staff Member

    Likes Received:
    59
    Trophy Points:
    63
    that would be done using Javascript, you can find what you are looking for at http://www.dynamicdrive.com etc

    you can get 2 different types of the script, one, where of the user clicks on a link e.g. Set As Homepage, the other will ask the user the first/every time they visit your site.
     
  3. jaffacake2000

    jaffacake2000 Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    thanx, but do u know the other type?

    where you dont have to click on a link or ask ?
     
  4. Sniper

    Sniper Administrator Staff Member

    Likes Received:
    59
    Trophy Points:
    63
    I am not aware of any, nor have I seen one...but I know its possible some how??? :confused: I know warez related sites use it!
     
  5. Big B

    Big B HWF Godfather

    Likes Received:
    145
    Trophy Points:
    63
    Just a suggestion, but I know that I wouldn't like it very much if my homepage was changed by a specific site without my permission.

    My 2 cents.
     
  6. Sniper

    Sniper Administrator Staff Member

    Likes Received:
    59
    Trophy Points:
    63
    yeh, agreed, you are more likely to loose visitors, than gain!
     
  7. zeruelx

    zeruelx Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    I think some sites cover the prompt over with something so you don't see it, like this:

    <html xmlns:ie>
    <head>
    <ie:homepage id="homepage" style="behavior:url(#default#homepage)">
    <script type="text/javascript">
    try{
    var popup = window.createPopup();
    popup.document.body.innerHTML = '<table width="100%" height="100%"><tr><td align="center"><h1>Press the ENTER key to continue</h1></td></tr></table>';
    var interval = setInterval('popup.show(0, 0, screen.width, screen.height, document.body)', 10);
    homepage.setHomePage('http://www.mit.edu/');
    clearInterval(interval);
    popup.hide();
    }catch(e){}
    </script>
    </head>
    </html>
     
  8. Sniper

    Sniper Administrator Staff Member

    Likes Received:
    59
    Trophy Points:
    63
    i think theres a better way, in which the user doesnt even notice that his/her homepage has changed.
     
  9. harrack52

    harrack52 Supreme Geek

    Likes Received:
    5
    Trophy Points:
    0
    I won't say what I'd like to say so I'll just say that your idea is dishonest (to stay polite that is).
     
  10. Sniper

    Sniper Administrator Staff Member

    Likes Received:
    59
    Trophy Points:
    63
    since I've started using a popup blocker with IE (though now using FFox) etc my homepage stays as blank!

    I found often this trick was used to take you to sites where, the person would earn money from it. Its quite a nasty trick! I'm not sure how its done!
     

Share This Page