Benutzer:Ensik: Unterschied zwischen den Versionen

Aus Gronkh-Wiki
Wechseln zu: Navigation, Suche
Zeile 4: Zeile 4:
 
     function load()
 
     function load()
 
     {
 
     {
document.title = "TEST";
 
var startgame = false;
 
if (confirm("Lust auf ein Spiel?")) {
 
    startgame = true;
 
} else {
 
    alert("Na gut, dann halt nicht :D");
 
}
 
  
 +
var startgame = false;
 +
confirm(
 +
  'I'm a confirm box',
 +
  function(data){
 +
  {
 +
    return : true
 +
    title : 'Comfirm Title',
 +
    yes : 'Okey',
 +
    no : 'No!'
 +
  }
 +
)
 
if(startgame){
 
if(startgame){
 
document.write("<h1>Greetings</h1>");
 
document.write("<h1>Greetings</h1>");

Version vom 3. November 2018, 12:11 Uhr

Hello World!