Teil 2


Set of flashcards Details

Flashcards 46
Language Deutsch
Category Micro-Economics
Level Primary School
Created / Updated 18.07.2016 / 15.12.2022
Weblink
https://card2brain.ch/box/part_1_javascript_basics2
Embed
<iframe src="https://card2brain.ch/box/part_1_javascript_basics2/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>

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>