Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #27903
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Firefox: "window -> about:home" |
| Date | 2015-05-27 00:13 +0200 |
| Organization | PointedEars Software (PES) |
| Message-ID | <62294376.Y23NWOxPSl@PointedEars.de> (permalink) |
| References | <window-20150526222329@ram.dialup.fu-berlin.de> |
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: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread
Re: Firefox: "window -> about:home" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-27 00:13 +0200
csiph-web