• Inloggen
  • Registreer
  • Zoeken
Dit topic
  • Overal
  • Dit topic
  • Dit forum
  • Artikelen
  • Pagina's
  • Forum
  • Downloads
  • Meer opties

ICTscripters

Dé plek voor IT

Dé plek voor IT

Aanmelden

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. (X)HTML + XML + CSS

Forum

  • [Beta] Ottomaan: gratis browserspel met een echte, levende stad. Feedback gezocht!

    frio 27 oktober 2026 om 12:22
  • Port Father: beta van een browsergame in Antwerpen 1931, feedback welkom

    Jeroen.G 26 oktober 2026 om 10:33
  • Maffia Hotel: een browsergame waarin je van lobbygast naar spil van het hotel groeit

    eeyk 22 oktober 2026 om 18:43
  • Crime Club volledig herschreven vanaf nul

    frio 19 oktober 2026 om 23:57
  • Malavita (nieuwe maffia game, van 0)

    jos 19 oktober 2026 om 23:18
  • Herkent deze Notion-structuurscan echte problemen?

    Jeroen.G 19 oktober 2026 om 15:09
  • 🚀 WE ZOEKEN TESTERS! 🚀

    Servertjee 3 oktober 2026 om 10:56
  • Luchtvaartsoftware: Hoe technologie de moderne luchtvaart verandert

    saggy2829 30 september 2026 om 19:31

Marktplaats

  • [Aanbod] Stadskaart voor je browsergame: van menu naar klikbare stad, vanaf €200

    frio 29 oktober 2026 om 18:17
  • [Verkoop] G4G (Gangsters 4 Gangsters): volledige broncode, nieuw gebouwd in PHP 8.3 | € 30 per domein

    frio 27 oktober 2026 om 18:54
  • [TE KOOP] Malavita.be [Maffiaspel, gebaseerd op omicidio.nl, unieke code]

    Dpm_x 26 oktober 2026 om 00:22

functie uitvoeren bij sluiten venster

  • febol
  • 25 juni 2012 om 15:38
  • febol
    Gevorderd
    Berichten
    168
    • 25 juni 2012 om 15:38
    • #1

    programmataal : javascript

    ik heb een problem dat als ik mijn venster sluit bij mijn bestelformulier (die ik gedownload heb) dat hij als je dan op kruisje klikt en dan weer op bestel dat hij dat de 2 keer bij elkaar opteld tuurwel hij de eerste keer moet vergeten want toen is er niet voor niks op kruisje geklikt.

    nu dacht ik dan zet ik er een function in dat hij de cookies leegd als het java venster sluit maar iemand enige iedee hoe ik dit moet doen ?

    ik heb al lang op google zitten zoeken!

    als u de oplossing heeft wilt u dan met uitleg geven zo mogenlijk want dan leer ik nog iets :D

    alfast bedankt! voor u tijd en moeite

    groetjes tim. ik hoop dat het zo duidenlijk voor u is

    hier is het script
    voormulier.htm

    PHP
    <script language="JavaScript" type="text/javascript" src="winkelwagentje.js"></script>
    <form name="tel" method="get">
    
    
    <input type=hidden name="prijs" value="15.00">
    <input type=hidden name="prijs" value="11.35">
    <input type=hidden name="prijs" value="10.00">
    <input type=hidden name="prijs" value="10.00">
    <input type=hidden name="prijs" value="10.00">
    <input type=hidden name="prijs" value="10.209">
     
    <div align="center">
    
    
    <table border=1 width=400> 
    <tr>
    <th bgcolor="#E9E9E9">Product</th>
    <th bgcolor="#E9E9E9">Kies</th>
    <th bgcolor="#E9E9E9">Aantal</th>
    <th bgcolor="#E9E9E9">Eenheidsprijs</th>      
    </tr>
    
    
    <tr>
    <td>Product 1</td>
    <td><input type="checkbox" name="producten" value="Product 1"></td>
    <td><input type="text" name="aantaly" value="1" size=2></td>
    <td height="24"><p align="center">€ 10,00</td>
    </tr>
       
    <tr>
    <td bgcolor="#E9E9E9">Product 2</td>
    <td bgcolor="#E9E9E9"><input type="checkbox" name="producten" value="Product 2"></td>
    <td bgcolor="#E9E9E9"><input type="text" name="aantaly" value="1" size=2></td>
    <td height="24" bgcolor="#E9E9E9"><p align="center">€ 10,00</td>
    </tr>
    
    
    <tr>
    <td>Product 3</td>
    <td><input type="checkbox" name="producten" value="Product 3"></td>
    <td><input type="text" name="aantaly" value="1" size=2></td>
    <td height="24"><p align="center">€ 10,00</td>
    </tr>
    
    
    <tr>
    <td bgcolor="#E9E9E9">Product 4</td>
    <td bgcolor="#E9E9E9"><input type="checkbox" name="producten" value="Product 4"></td>
    <td bgcolor="#E9E9E9"><input type="text" name="aantaly" value="1" size=2></td>
    <td height="24" bgcolor="#E9E9E9"><p align="center">€ 10,00</td>
    </tr>
    
    
    <tr>
    <td>Product 5</td>
    <td><input type="checkbox" name="producten" value="Product 5"></td>
    <td><input type="text" name="aantaly" value="1" size=2></td>
    <td height="24"><p align="center">€ 10,00</td>
    </tr>
    
    
    <tr>
    <td>Product 6</td>
    <td><input type="checkbox" name="producten" value="Product 6"></td>
    <td><input type="text" name="aantaly" value="1" size=2></td>
    <td height="24"><p align="center">€ duizend</td>
    </tr>
        
    </table>
    </div>
    
    
    <p align="center">   
    <input type="button" name="buttonName" value="Bestellen" onclick="BestelLijst()">            
    <input type="reset" value="Alles Wissen">  </p>
    </form>
    Meer tonen

    DIT IS DE JAVA!

    PHP
    // winkelwagentje.js
    
    
    var aantal=0; 
    var bedrag=0; 
    var subtotaal=0; 
    var totaal=0; 
    
    
    // hier wordt het bestelformulier gemaakt
    
    
    function BestelLijst() {
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes");
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write("") 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0\/\/EN\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','html','>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','head','>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','title>','        ... EVEN GEDULD TOT DE FACTUUR IS OPGEMAAKT ...     ','<','/title>','\n') 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','script language=\"Javascript\">','\n')
    
    
    // controle op een geldig email-adres
    
    
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('function FControle','(formulier)',' {','\n') 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('if','(formulier.Emailadres.value.length <= 6 ||')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('formulier.Emailadres.value.indexOf (\'@\'\, 0) == -1 ||','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('formulier.Emailadres.value.indexOf (\'.\'\, 0) == -1')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('){','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('alert(\" Je hebt geen geldig e-mailadres ingevuld.\")','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('return false;','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('}','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('else {','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('alert (\"OK om te versturen? \")','\n')
    
    
    // hieronder jouw verzendingsadres invullen
    
    
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('formulier.action=\"mailto:[email protected]\"','\n')
    
    
    // hieronder de URL van jouw bedankingspagina invullen
    
    
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('location.href=\"thanx.htm"','\n')
    
    
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('return true;','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('}','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('}','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','/script>','<','/head>','\n')
    
    
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','body')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(' bgcolor=\"#FFCC66\" text=\"black\"')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','div align=\"center\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','table border=0 cellpadding=0 cellspacing=0 width=400>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=400 height=25 colspan=5 bgcolor=\"#999999\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"center\"><font face=\"Arial\" size=\"3\" color=\"white\"><b>JOUW BESTELLING<\/b>','<\/font>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','form name=\"formulier\" method=\"post\" enctype=\"text/plain\" onsubmit=\"JavaScript:return FControle(this);\">','\n')
    
    
    for (i=0;i<=6;i++){ //6 aanpassen aan het aantal producten !
    if (document.tel.producten[i].checked){ 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=300 colspan=2>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','input type=','\"','hidden','\"')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(' name=','\"',(i+1),'\"',' value=')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('\"',(document.tel.producten[i].value),'\"')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('>')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(document.tel.producten[i].value); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(" "); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=70>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"right\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(document.tel.aantaly[i].value); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(" stuk "); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(" = "); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=35>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"right\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(" € "); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<i','nput type=','\"','hidden','\"')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(' name=','\"','Aantal stuks','\"',' value=')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('\"',(document.tel.aantaly[i].value),'\"')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('>')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=50>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"right\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2>','\n')
    aantal= (document.tel.aantaly[i].value); 
    bedrag= (document.tel.prijs[i].value); 
    subtotaal= aantal*bedrag;
    totaal+=subtotaal ;
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(subtotaal.toFixed(2)); 
    subtotaal=0 ; 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<br>'); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/font><\/td>','\n')
    }
    else {}
    
    
    if (i==5) break ; //hier aanpassen !: 4 =( aantal producten - 1 )
    
    
    }
    subtotaal= aantal*bedrag;
    if(subtotaal < 1000){
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td colspan=5>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<br><font face=\"Arial\" size=2>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','input type=','\"','checkbox','\"')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(' name=','\"','Totaal bedrag','\"',' value=')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('\"',(totaal),'\"')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(' checked>')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/font>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write("<b>totaal: "+" "); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(totaal.toFixed(2)); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(" EURO<\/b>"); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/font><br><br>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')
    }
    else{
    	window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td colspan=5>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<br><font face=\"Arial\" size=2>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','input type=','\"','checkbox','\"')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(' name=','\"','Totaal bedrag','\"',' value=')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('\"',(totaal),'\"')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(' checked>')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/font>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write("<b>totaal: "+" "); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(totaal.toFixed(3)); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write(" EURO<\/b>"); 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/font><br><br>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')
    }
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=400 height=25 colspan=5 bgcolor=\"#999999\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"center\"><font face=\"Arial\" size=\"3\" color=\"white\"><b>BESTELFORMULIER<\/b>','<\/font>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td bgcolor=\"#CCCCCC\"><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=170 bgcolor=\"#CCCCCC\"><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=70 bgcolor=\"#CCCCCC\"><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=35 bgcolor=\"#CCCCCC\"><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td bgcolor=\"#CCCCCC\"><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=400 height=1 colspan=5 bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=130 height=15 valign=\"middle\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2 color=\"black\"><b> <\/b><\/font>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2 color=\"black\"> Naam:  <\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=370 height=15 valign=\"middle\" colspan=\"4\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2 color=\"#999999\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','input type=\"text\" name=\"Naam besteller\" maxlength=\"20\"> <\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=130 height=15 valign=\"middle\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2 color=\"black\">  Telefoon:  <\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=370 height=15 valign=\"middle\" colspan=\"4\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=\"2\" color=\"#999999\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<i','nput type=\"text\" name=\"Telefoon\" maxlength=20 size=20><\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('</tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=130 height=15 valign=\"middle\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2 color=\"black\"><b> <\/b><\/font>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2 color=\"black\">E-mail:  <\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=370 height=15 valign=\"middle\" colspan=\"4\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2 color=\"#999999\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','input type=\"text\" name=\"Emailadres\" maxlength=\"25\" size=\"25\"><\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=130 valign=\"top\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2 color=\"black\"><b> <\/b></\font>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2 color=\"black\">Adres: <\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=370 valign=\"middle\" colspan=4 bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<font face=\"Arial\" size=2 color=\"#999999\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','textarea name=\"Besteladres\" rows=4 cols=40><\/textarea> <\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
    
    
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<td width=500 height=12" align=\"center\" valign=\"middle\" colspan=\"5\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<p align=\"center\">','\n') 
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','input type=\"submit\" name=\"Submit\" value=\"Versturen\"> <\/td>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','\/form>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','\/table><\/div>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','\/body>','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.write('<','\/html>','\n')
    }
    function delCookie(name){
     expires = new Date(1970,1,1);
     expires = expires.toGMTString();
     deCookie = name
     deCookie += "=delete; expires=";
     deCookie += expires;
     document.cookie = deCookie;
    }
    Meer tonen

    als iemand nog tijd over heeft wilt u dan ook uitleggen hoe if en variabelen maakt in java want volgensmij mnoet er bij java geen $ voor een variabelen toch maar var VERIABEL1? graag een kleine duidenlijke uitleg alleen als u tijd en zin heeft!!!!! en hoe je een variabelen oproepen in een if gewoon alleen als je je variabelen hebt de naam VARIABEL1 of if(var VARIABEL1) ?

    doeg

  • Gast, wil je besparen op je domeinnamen? (ad)
  • Tim
    Expert
    Berichten
    3.684
    • 25 juni 2012 om 15:40
    • #2

    Waar is de Java? Ik zie geen Java.

    Master student IT-recht en Master student Ondernemingsrecht & software ingenieur
    My Personal profile
    My professional profile (LinkedIn/CV)

  • febol
    Gevorderd
    Berichten
    168
    • 25 juni 2012 om 15:43
    • #3

    ow sorry dan ben ik heel erg dom bezig sorry ik dacht dat het 2de scripot java was ? wat is dit dan ?

  • Malik
    Gast
    • 25 juni 2012 om 15:47
    • #4

    javascript?

  • eeyk
    Crime-ware.nl
    Berichten
    1.185
    • 25 juni 2012 om 15:49
    • #5

    het is ook gewoon javascript laat die gasten maar praten.
    Alleen jij geeft Java op en java is een andere taal.

  • Stefan.J
    Meester
    Berichten
    2.358
    • 25 juni 2012 om 16:50
    • #6

    Zo, allemaal mooie reacties maar niemand die met een oplossing komt? Het is inderdaad Javascript en geen Java, wat best wel een cruciaal verschil is, maar moet dat vier reacties kosten?

    Goed, ik denk, en dat lijkt uitzonderlijk in dit topic, wel de oplossing te weten. Helemaal zeker weten doe ik het echter niet, want de Javascript code is echt een chaos.

    Regel 67 van voormulier.htm (Of toch formulier?):

    PHP
    <input type="button" name="buttonName" value="Bestellen" onclick="BestelLijst()">

    Hier staat dat de functie BestelLijst in de Javascript code moet worden aangeroepen als er op de button Bestellen wordt gedrukt. De eerste keer gaat dit prima, omdat de globale variabele aantal, bedrag, subtotaal en totaal op 0 zijn gezet bij het openen van de pagina, maar bij een tweede keer worden deze niet terug gezet.

    De oplossing is simpel. De variabelen dienen niet globaal te zijn, maar te worden gedeclareerd in de functie BestelLijst.

  • febol
    Gevorderd
    Berichten
    168
    • 25 juni 2012 om 17:03
    • #7

    oke dat ga ik probeeren echt bedankt voor u duidenlijke uitleg en reactie!

    dank u wel

    groetjes tim

    EEN VRAAGJE

    kan ik ook dat ik als de bestel klik dat hij als hij dat javascript venster open dat hij dan en leegmaakt op als ze op kruisje kluikken dan hij hem dan leeg maakt ? want dit lukt mij niet sory of mischien een voorbeeldje ?

    bedankt voor u hulp en tijd

    groetjes tim

Registratie

Nog geen account? Registreer je nu en word deel van onze community!

Nu registreren Aanmelden

ICT Nieuws

  • PHP waarschuwt voor twee ernstige bugs die makkelijk uit te buiten lijken

    Aaron 22 oktober 2026 om 22:19

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37

Gebruikers die dit topic bekijken

  • 2 Gasten
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacyverklaring
  10. Contact
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design