find users default homepage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • svjames
    New Member
    • Aug 2007
    • 4

    #1

    find users default homepage

    heya guyzorz, just a quick q, for the life of me i cant find a way to obtain the value of a users browsers default homepage. Ive written a site that provides access to the internet on a certain segment and once a user is logged in i want to forward them to thier own homepage in a new window. i tried window.open(win dow.home()) but to no avail, usually my attampts ended in a script working in IE and not MOZ or vice versa. i have developed a work-around, but i need to identify what the preset homepage is to complete the script - in MOZ. My IE version (im useing browser detection) works fine,
    Code:
    href="about:home"
    and it works when you type about:home into the address bar, but not in MOZ, of course, just to be difficult.
    If you have a good way of achieving a new page at the users homepage in IE6,7 and MOZ i'd really like to know, otherwise, *sob* please help*sob*
    rgr and thanks
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Welcome to TSDN!

    I'm not sure, but does window.home() not work?

    Comment

    • svjames
      New Member
      • Aug 2007
      • 4

      #3
      Cheers, glad to be here,
      well, yes it does actually work, but no as well. window.home() will correctly sen the browser to its default homepage. what i am trying to do is open a new browser window directed specifically to the users homepage. eg the window.open(win dow.home()) which doesnt work. it opens the browser, yes, but doesnt go to the homepage.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        In that case, try opening a new window and then calling window.home() on the new window, e.g.
        [CODE=javascript]var newwin = window.open(... );
        newwin.home();[/CODE]

        Comment

        Working...