Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

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

  • 7 réponses
  • 1 a ce problème
  • 45 vues
  • Dernière réponse par biol75
  • Archivé

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

Toutes les réponses (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.