Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Firefox: "window -> about:home" Date: Wed, 27 May 2015 00:13:46 +0200 Organization: PointedEars Software (PES) Lines: 53 Message-ID: <62294376.Y23NWOxPSl@PointedEars.de> References: Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1432678588 16451 eJwFwQkBwDAIA0BLUAiPnJIV/xJ2BwsNpgfCsdjHoL7Xod1lDqYc4638qofL2jNouQZtjMgPHokQ4A== (26 May 2015 22:16:28 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 26 May 2015 22:16:28 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwYkBwEAEBMCWOCzK8UT/JWTGBIxxhUHt7OYS7MigjzDSx9WgrqqMzHmdzNv2+Fn4YVZ0ld0zVmi++wFRMBVu Cancel-Lock: sha1:+OdNVRthiyk5E3BUnHQqA9rxSzg= X-NNTP-Posting-Host: eJwNx8EBwCAIA8CViiEg4wCW/UfQ+x1hYu1qNOVw9gtKUbJ8ZAb9k3my0MIvfaE90nawGZ5yAR8TEQI= Xref: csiph.com comp.lang.javascript:27903 Stefan Ram wrote: > I have a browser that is called "Firefox". > It has a JavaScript console (Ctrl-Shift-K). You want to stop assuming that your audience is stupid. > When I enter (<) »window«, then it outputs (>) > »window -> about:home«: The character “>” is commonly used for showing the quotation level. When quoting from the console, it is prudent to use the third-party quotation character, “|”, and use “>>>” to indicate the input as well. > < window >> window -> about:home > > . Where does »about:home« come frome? It is the URI of the built-in “My Homepage” document as selected in the Preferences. > It is not window.toString() nor window.title. Of course not. It is the value of window.location.href or window.location.toString() with respect to that document. > What is the general rule that explains how the string > that is written on the right side of the arrow is > determined? UTSL. > Is there a general rule, how this console displays > an object? UTSL. And fix your punctuation: lines are not supposed to begin with a period. > For example, »window« is an object, and > it is displayed as »window -> about:home« with an arrow. > »window.history« also is an object, but it is displayed as > > < window.history >> History { length: 2, state: null } ISTM that the display is determined by usefulness. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.