aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/range/tostring/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/it/web/api/range/tostring/index.html')
-rw-r--r--files/it/web/api/range/tostring/index.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/files/it/web/api/range/tostring/index.html b/files/it/web/api/range/tostring/index.html
new file mode 100644
index 0000000000..fd3c9d3999
--- /dev/null
+++ b/files/it/web/api/range/tostring/index.html
@@ -0,0 +1,28 @@
+---
+title: range.toString
+slug: Web/API/Range/toString
+translation_of: Web/API/Range/toString
+---
+<p>{{ APIRef("DOM") }}</p>
+
+<p>Restituisce il testo del Range.</p>
+
+<h3 id="Sintassi" name="Sintassi">Sintassi</h3>
+
+<pre class="eval">text = range.toString();
+</pre>
+
+<h3 id="Esempio" name="Esempio">Esempio</h3>
+
+<pre class="eval">range = document.createRange();
+range.selectNode(document.getElementsByTagName("div").item(0));
+text = range.toString();
+</pre>
+
+<h3 id="Note" name="Note">Note</h3>
+
+<p>Alterare i contenuti di un Range causa una chiamata implicita di toString(), quindi comparare il Range e il testo attraverso un alert dialog รจ inutile.</p>
+
+<h3 id="Specifiche" name="Specifiche">Specifiche</h3>
+
+<p><a class="external" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113/ranges.html#Level2-Range-method-toString">toString</a></p>