Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

what has replaced "window.home" as it is documented as obsolete

  • 7 பதிலளிப்புகள்
  • 1 இந்த பிரச்சனை உள்ளது
  • 4 views
  • Last reply by biol75

Hi, on the support page, https://developer.mozilla.org/en-US/docs/Web/API/Window/home it says that

window.home()

is Obsolete since Gecko 31 (Firefox 31 / Thunderbird 31 / SeaMonkey 2.28, but it gives no hint if there is a replacement or equivalent way of going to the user's home page

thanks chris

Hi, on the support page, https://developer.mozilla.org/en-US/docs/Web/API/Window/home it says that window.home() is Obsolete since Gecko 31 (Firefox 31 / Thunderbird 31 / SeaMonkey 2.28, but it gives no hint if there is a replacement or equivalent way of going to the user's home page thanks chris

All Replies (7)

Are you talking about about:home ?

FredMcD said

Are you talking about about:home ?

Sorry, this was code to load the users' home page into the current window, and used to work with older firefoxes

I've called the big guys to help you. Good luck.

See:

  • bug 1012944 - User login and account creation on deezer.com broken since Firefox 30.0b1, say home.display is not a function

Please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html

Do you mean a method a website can use, or a method an extension can use? I don't think there is a method a website can use to navigate a tab to the user's home page. However, an extension probably can do that using a method in the SDK.

Actually this does work for me in Firefox 31 if I run this command (window.home()) in the Web Console with this page open and it brings me to my home page (about:about) in the same tab. The Back button brings me to the previous page. I'm not sure why you would ever allow a website to navigate this way if that is possible.

The above linked articles writes:

The non-standard, Netscape-derived window.home, window.back and window.forward methods have been removed. The standard history.back and history.forward methods can be used instead to manipulate the browser history.

Thanks for the comments. I'm sorry to learn that a "netscape" command is non-standard, but appreciate time moves on.