Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #27903 > unrolled thread

Re: Firefox: "window -> about:home"

Started byThomas 'PointedEars' Lahn <PointedEars@web.de>
First post2015-05-27 00:13 +0200
Last post2015-05-27 00:13 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.javascript

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Firefox: "window -> about:home" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-27 00:13 +0200

#27903 — Re: Firefox: "window -> about:home"

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-05-27 00:13 +0200
SubjectRe: Firefox: "window -> about:home"
Message-ID<62294376.Y23NWOxPSl@PointedEars.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.

[toc] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web