🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #4221

Newbie Javascript vraagje

#4221
From: Lucas
Date: Mon, 15 Sep 2003 13:26
52 lines
2251 bytes
Ik ben vandaag begonnen met Javascript te leren, maar verlopig zit ik in de
knoei met volgende code. Waarom verschijnt de inhoud van wie() niet in het
popup venster ??




<html>
<head>
<title>Voorbeeld 02</title>
</head>

<body>
<b>Registratie !</b>
<br><br>

<script language="JavaScript">
<!--
function wie()
{
                var Voornaam = document.registratie.Voornaam.value;
                var Naam = document.registratie.Naam.value;
}

function popup()
{
                venster = window.open ('', 'U bent geregistreerd !', 'width=400,
height=200, status=no, toolbar=no, menubar=no');
                venster.document.open();
                venster.document.write('Welkom ');
                venster.document.write('<body onLoad="wie()"></body>');
                venster.document.close();
}
//-->
</script>

<FORM  NAME="registratie" METHOD="POST" ACTION="#">
<INPUT TYPE="TEXT" NAME="Voornaam" SIZE="20">&nbsp;Voornaam<BR>
<INPUT TYPE="TEXT" NAME="Naam" SIZE="20">&nbsp;Naam<BR>
<BR>
<INPUT TYPE="button" NAME="Verstuur" VALUE="Verstuur"
onClick="popup()">
<INPUT TYPE="RESET" NAME="Herbegin" onclick="toForm();">
</FORM>

</body>
</html>


-- 
De wereld van Lucas
http://users.pandora.be/lucas2
Technical Details
Message-ID: <g6j9b.21626$_x3.1370253@phobos.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!skynet.be!skynet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,26b69be70f28fb00,start
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-09-15 06:27:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!skynet.be!skynet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
From: Lucas <luc.logghe@pandora.be>
Subject: Newbie Javascript vraagje
Newsgroups: be.comp.programming
Lines: 52
User-Agent: KNode/0.7.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Message-ID: <g6j9b.21626$_x3.1370253@phobos.telenet-ops.be>
Date: Mon, 15 Sep 2003 13:26:36 GMT
NNTP-Posting-Host: 213.224.80.39
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1063632396 213.224.80.39 (Mon, 15 Sep 2003 15:26:36 MEST)
NNTP-Posting-Date: Mon, 15 Sep 2003 15:26:36 MEST
Organization: Telenet Internet