View Full Version : Can the browsers home page be determined?
AlistairH
06-07-2005, 11:04 AM
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
mwinter
06-07-2005, 11:35 AM
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
AlistairH
06-07-2005, 01:55 PM
Thanks Mike, that will do nicely as all I want to do is hide the setHomePage link if it's already been set.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.