diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
commit | 074785cea106179cb3305637055ab0a009ca74f2 (patch) | |
tree | e6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/pl/web/api/document/location | |
parent | da78a9e329e272dedb2400b79a3bdeebff387d47 (diff) | |
download | translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2 translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip |
initial commit
Diffstat (limited to 'files/pl/web/api/document/location')
-rw-r--r-- | files/pl/web/api/document/location/index.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/files/pl/web/api/document/location/index.html b/files/pl/web/api/document/location/index.html new file mode 100644 index 0000000000..6a754d5c0d --- /dev/null +++ b/files/pl/web/api/document/location/index.html @@ -0,0 +1,37 @@ +--- +title: document.location +slug: Web/API/Document/location +tags: + - DOM + - Dokumentacja_Gecko_DOM + - Gecko + - Wszystkie_kategorie +translation_of: Web/API/Document/location +--- +<p>{{ ApiRef() }}</p> + +<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3> + +<p>Pobiera URL bieżącego dokumentu.</p> + +<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3> + +<pre class="eval"><em>ciąg</em> = document.location +</pre> + +<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3> + +<pre class="eval">dump(document.location); +// zwraca ciąg taki jak np.: +// <a class="external" href="http://www.peoplemagazine.com/juicybits.html" rel="freelink">http://www.peoplemagazine.com/juicybits.html</a> +</pre> + +<h3 id="Uwagi" name="Uwagi">Uwagi</h3> + +<p><strong>document.location</strong> działa tak samo jak <a href="/pl/DOM/document.URL">document.URL</a>. Obydwie te własności są tylko do odczytu, w przeciwieństwie do <a href="/pl/docs/web/api/Window/location">window.location</a>, które można ustawiać. Ponieważ <code>document</code> reprezentuje jeden dokument lub URL, nie można zmieniać jego lokalizacji.</p> + +<h3 id="Specyfikacja" name="Specyfikacja">Specyfikacja</h3> + +<p>DOM Level 0 - brak w specyfikacji.</p> + +<p>{{ languages( { "en": "/en/DOM/document.location" } ) }}</p> |