Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Determinining a user's homepage?

    Can you determine the value of a user's homepage?

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You mean, can you determine what page the visitor has as their homepage??

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if you are looking how to set the users homepage this is a text link that sets it (if someone could tell me how to change that for when the page loads that would be great )

    <SPAN onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.wsabstract.com');">Click here to make wsabstract ur home page</SPAN>

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by whackaxe
    (if someone could tell me how to change that for when the page loads that would be great )
    how about this...

    <body onLoad="setHomePage('http://www.wsabstract.com');">

    ~Quack

  • #5
    New Coder
    Join Date
    Jun 2002
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I Was Away..

    Sorry for not offering a prompt reply..thanks for the suggestions on setting the page..

    I want to be able to validate whether or not a user has the correct homepage set incase the page is the same but the URL is different...

  • #6
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    To my knowledge, you cannot read what the user's homepage is, unless they are using IE and you use ActiveX and search through their registry, but they'll (hopefully) get big scary alerts saying why they shouldn't allow the script to run.

    You can redirect them to their homepage though:

    if (!window.home) window.home = function() { location.href = 'about:home' };

    window.home();

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry, my post didn't apply to the original comment, I was replying to whackaxe's post - but even then, the method I gave was wrong

    ~Quack

  • #8
    New Coder
    Join Date
    Jun 2002
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks...

    Thanks to all!
    I will try to do the registry snoop as it would be in a trusted evironment or an HTA...

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    is there a shorter way that the way i just showed for setting the homepage. save a couple of lines of code
    photoshop too expensive? use the GIMP! www.gimp.org

  • #10
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Planet Earth Code Poet: True
    Posts
    282
    Thanks
    0
    Thanked 1 Time in 1 Post
    You could try somethign like this for onload:

    <body onload="hp.style.behavior='url(#default#homepage)';hp.setHomePage('http://www.uvsc.edu');">
    <span id="hp"></span>

    although it is highly annoying!


  •  

    Posting Permissions

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