aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/javascript/reference/objets_globaux/object/parent/index.html
blob: dfbda99f34afce24c01246b6dc97efe18957daea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: Object.prototype.__parent__
slug: Web/JavaScript/Reference/Objets_globaux/Object/Parent
tags:
  - JavaScript
  - Object
  - Obsolete
  - Propriété
  - Prototype
  - Reference
translation_of: Archive/Web/JavaScript/Object.parent
---
<div>{{JSRef}}{{Non-standard_Header}}{{Obsolete_Header("gecko2")}}</div>

<p>La propriété <strong><code>__parent__</code></strong> était utilisée pour pointer vers le contexte d'un objet mais elle a été supprimée.</p>

<h2 id="Syntaxe">Syntaxe</h2>

<pre class="syntaxbox"><var>obj</var>.__parent__</pre>

<h2 id="Description">Description</h2>

<p>Pour les objets de plus haut niveau, on aurait eu <code>window</code> par exemple.</p>

<h2 id="Spécifications">Spécifications</h2>

<p>Cette propriété ne fait partie d'aucune spécification.</p>

<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>

<div>
<div class="hidden">Le tableau de compatibilité de cette page a été généré à partir de données structurées. Si vous souhaitez contribuer à ces données, n'hésitez pas à consulter <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> et à nous envoyer une <em>pull request</em>.</div>

<p>{{Compat("javascript.builtins.Object.parent")}}</p>
</div>

<h2 id="Voir_aussi">Voir aussi</h2>

<ul>
 <li><a class="external" href="http://whereswalden.com/2010/05/07/spidermonkey-change-du-jour-the-special-__parent__-property-has-been-removed/">Article : SpiderMonkey change du jour: the special __parent__ property has been removed</a> (en anglais)</li>
 <li><a href="/fr/docs/Components.utils.getGlobalForObject">Components.utils.getGlobalForObject</a></li>
</ul>