Test: Unterschied zwischen den Versionen

Aus wiki.kometin.at
Keine Bearbeitungszusammenfassung
(Der Seiteninhalt wurde durch einen anderen Text ersetzt: „ __NICHT_INDEXIEREN__“)
Markierung: Ersetzt
 
(372 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<html>
<h1></h1>


<form action="/action_page.php">
__NICHT_INDEXIEREN__
  <input type="checkbox" id="room" name="room" value="room">
  <label for="vehicle1">Alle Räumlichkeiten zeigen: Garten, Küche, Wohnzimmer, Atelier, Badezimmer</label><br>
  <input type="checkbox" id="vehicle2" name="vehicle2" value="Car">
  <label for="vehicle2"> I have a car</label><br>
  <input type="checkbox" id="vehicle3" name="vehicle3" value="Boat">
  <label for="vehicle3"> I have a boat</label><br><br>
  <input type="submit" value="Submit">
</form>
<script>
var room = document.getElementById("room").checked;
if(room === true)
{
console.log("Räumlichkeiten wurden gezeigt");
}
else {
console.log("Räumlichkeiten wurden nicht gezeigt");
}
document.body.onload = addElement;
 
function addElement() {
  // create a new div element
  const newDiv = document.createElement("div");
 
  // and give it some content
  const newContent = document.createTextNode("Hi there and greetings!");
 
  // add the text node to the newly created div
  newDiv.appendChild(newContent);
 
  // add the newly created element and its content into the DOM
  const currentDiv = document.getElementById("div1");
  document.body.insertBefore(newDiv, currentDiv);
}
</script>
</html>

Aktuelle Version vom 15. November 2025, 21:28 Uhr