Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

window.home() or location.href='about:home' and Safari 3.1



I'm trying to put together a cross-browser function for programmatically taking the user to their home page.  So far I have found this: 

  <script language="_javascript_"> 
    function gohome(){ 
      if (typeof window.home == 'function'){ 
        window.home(); 
      } else if (document.all) { 
        window.location.href = "" class="Apple-converted-space"> 
      } else { 
        document.write("<p>Please click on your browser's Home button.</p>"); 
      } 
    } 
  </script> 

Firefox and Opera like window.home() and IE likes href="" class="Apple-converted-space">  But Safari 3.1 (for Windows) falls through to the else clause. 

Is there a different mechanism where the home page can be launched using _javascript_?  So far I haven't been able to find anything. 

Thanks, 
Bill

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.