🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #231964

Re: Javascript Argument funkcji

#231964
From: Freja Draco
Date: Thu, 22 Feb 2018 13:55
38 lines
1808 bytes
W dniu 2018-02-22 o 14:39, Freja Draco pisze:

> Spróbuj może raczej,

demonstrator na szybkiego:

-------------------------------------------
<!DOCTYPE html>
<html>
<body>

<script>
window.onhashchange = function() {
   var x = location.hash;
   if (x=="") x = "start";
   document.getElementById("zmienny").innerHTML = x;
}

function zmien() {
   location.hash = "costam";
}
</script>


<button onclick="zmien();">zmiana tresci</button>
<br><br>

<div id="zmienny" style="border:1px solid green;">start</div>

</body>
</html>
-------------------------------------------

-- 
Freja Draco

Kiedy smok jest w pobliżu, nic nie będzie w stanie ci pomóc,
jeśli nie uwzględnisz go w swoich kalkulacjach.
Technical Details
Message-ID: <5a8ec8f8$0$577$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <5a8d4ed8$0$658$65785112@news.neostrada.pl> <p6k5os$6mr$1@node2.news.atman.pl> <5a8e70d0$0$557$65785112@news.neostrada.pl> <5a8ec533$0$661$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Subject: Re: Javascript Argument funkcji
Newsgroups: pl.comp.lang.php
References: <5a8d4ed8$0$658$65785112@news.neostrada.pl> <p6k5os$6mr$1@node2.news.atman.pl> <5a8e70d0$0$557$65785112@news.neostrada.pl> <5a8ec533$0$661$65785112@news.neostrada.pl>
From: Freja Draco <frreja@poczta.fm>
Date: Thu, 22 Feb 2018 14:55:28 +0100
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
MIME-Version: 1.0
In-Reply-To: <5a8ec533$0$661$65785112@news.neostrada.pl>
Lines: 38
Message-ID: <5a8ec8f8$0$577$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 83.30.145.129
X-Trace: 1519307000 unt-rea-a-02.news.neostrada.pl 577 83.30.145.129:12397
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit