Advanced Search

Results 1 to 3 of 3

Thread: Can the browsers home page be determined?

  1. #1
    Join Date
    Jun 2005
    Location
    Scotland
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can the browsers home page be determined?

    I'm familiar with the setHomePage technique to assign a url to the users home page, but is there a corresponding command that can retrieve the current setting?

    I'd like to be able to check the current home page and display/not display the option to reset it if appropriate


    Cheers

    Alistair

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by AlistairH
    is there a corresponding command that can retrieve the current [homepage] setting?
    That would be a violation of the user's privacy, so I would suspect not. However, IE does provide a method that complements setHomePage: isHomePage. This accepts a string that is compared against the home page URL. If they match, the method returns true.

    Mike

  3. #3
    Join Date
    Jun 2005
    Location
    Scotland
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks Mike, that will do nicely as all I want to do is hide the setHomePage link if it's already been set.

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
  •