faqts : Computers : Programming : Languages : JavaScript : Browser Settings

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 8 people (75%) answered Yes
Recently 6 of 8 people (75%) answered Yes

Entry

How do I navigate the user to their default homepage ?
How do I navigate the user to their default homepage ?

May 26th, 2001 11:57
Thor Larholm,


There is absolutely no way to read _what_ the default homepage is 
without breaching standard security restrictions. However, even though 
you cannot read _what_ the users default homepage is, there's nothing 
to stop you from navigating the user to it.

IE5 has a default behavior installed called homePage, which has a 
navigateHomePage() method. Read more about it at

http://msdn.microsoft.com/workshop/author/behaviors/reference/methods/na
vigateHomePage.asp

IE4 can embed the WebBrowser object, which has a GoHome() method. 
However, this will only apply inside this object, and not in the entire 
window. Read more about it at

http://msdn.microsoft.com/workshop/browser/webbrowser/reference/Methods/
GoHome.asp

NS4 has a home() method on the window object, read more about it at

http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#12
02388

The same home() method also exist in NS6/Mozilla.

Note: The above URL's are split into multiple lines, combine them in 
one.