General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
window.home() doesn't go to home page
Posted by: wtrenker
Date: April 19, 2008 12:32AM

Here is a script found on the web for going to the home page defined in the browser's preferences. This works for Firefox, Opera, and IE. It doesn't work for Safari (3.1 - Windows). On K-Meleon it takes me to http://www.mozilla.org/. Is there a way to programatically go to the Home Page specified in K-Meleon's Page Display Settings?

  <script language="javascript"> 
    function gohome(){ 
      if (typeof window.home == 'function'){ 
        window.home(); 
      } else if (document.all) { 
        window.location.href = "about:home"; 
      } else { 
        document.write("<p>Please click on your browser's Home button.</p>"); 
      } 
    } 
  </script>

Thanks,
Bill

Options: ReplyQuote
Re: window.home() doesn't go to home page
Posted by: kko
Date: April 19, 2008 01:16PM

Oops, that's a bug. I've filed a bug report including a workaround.

Thank you for reporting.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.