Teil 2


I. L.
Diese Lernkarten bieten eine Einführung in die Grundlagen von JavaScript, ideal für Anfänger. Sie decken Themen wie Schleifen, Funktionen, Zuweisungen und verschiedene Ereignisse wie OnClick und OnMouseOver ab. Beispiele zeigen die Anwendung von Cookies, Dialogboxen und Seitenaktualisierungen. Praktiker und Einsteiger profitieren von den klaren Beispielen und Anweisungen, um grundlegende JavaScript-Funktionen umzusetzen.
Flashcards
46
Students
1
Language
German
Category
Micro-Economics
Created / Updated
18.07.2016 / 15.12.2022

Flashcards

nennen sie ein beispiel für ALERT DIALOG BOX? 

<html> 
<head> 
<script type="text/javascript"> 
<!-- 
function Warn() { 
   alert ("This is a warning message!"); 
   document.write ("This is a warning message!"); 
} 
//--> 
</script> 
</head> 
<body> 
<p>Click the following button to see the result: </p> 
<form> 
<input type="button" value="Click Me" onclick="Warn();" /> 
</form> 
</body> 
</html> 

nennen sie ein beispiel für CONFIRMATION DIALOG BOX? 

<html> 
<head> 
<script type="text/javascript"> 
<!-- 
function getConfirmation(){ 
   var retVal = confirm("Do you want to continue ?"); 
   if( retVal == true ){ 
      document.write ("User wants to continue!"); 
    return true; 
   }else{ 
      Document.write ("User does not want to continue!"); 
    return false; 
   } 
} 
//--> 
</script> 
</head> 
<body> 
<p>Click the following button to see the result: </p> 
<form> 

<input type="button" value="Click Me" onclick="getConfirmation();" /> 
</form> 
</body> 
</html> 

nennen sie ein beispiel für PROMPT DIALOG BOX? 

<html> 
<head> 
<script type="text/javascript"> 
<!-- 
function getValue(){ 
   var retVal = prompt("Enter your name : ", "your name here"); 
    
   document.write("You have entered : " +  retVal); 
} 
//--> 

</script> 
</head> 
<body> 
<p>Click the following button to see the result: </p> 
<form> 
<input type="button" value="Click Me" onclick="getValue();" /> 
</form> 
</body> 
</html> 

nennen sie die syntax für VOID?

<head> 
<script type="text/javascript"> 
<!-- 
void func() 
javascript:void func()  
OR 
void(func()) 
javascript:void(func()) 
//--> 
</script> 
</head> 

nennen sie ein beispiel für VOID?

<html> 
<head> 
<script type="text/javascript"> 
<!-- 
//--> 
</script> 
</head> 

<body> 
<p>Click the following, This won't react at all...</p> 
<a href="javascript:void(document.write(“Hello : 0”))">Click me!</a> 
</body> 
</html> 

nennen sie ein beispiel für PAGE PRINTING? 

<head> 
<script type="text/javascript"> 
<!-- 
//--> 
</script> 
</head> 
<body> 
<form> 
<input type="button" value="Print" onclick="window.print()" /> 
</form> 
</body>