w3org1999xhtml xmllangen US langen US headtitleWelcome to Seker Food

W3org1999xhtml xmllangen us langen us

This preview shows page 25 - 26 out of 26 pages.

<html xmlns="" xml:lang="en-US" lang="en-US"> <head><title>Welcome to Seker Food Industries</title></head> <body style="font-family: Verdana, Arial, Helvetica, sans-serif;">   <div style="position: absolute; background-color: RGB(234,233,29); text-align: center; width:  100%; height: 60px;">     <br /><span style="color:red; font-family: verdana; font-size: large;">Seker Food  Industries</span>   </div>   <div style="position: absolute;margin-top: 100px; margin-left: 40px;">     <h3>Welcome to Seker Food Industries</h3>     <div>         Text1:          <input id="txtId" name="txtName" type="text" value="Hello" /> <br />     </div>   </div>   <script type = "text/javascript">      var obj = document.getElementsByName("txtName").item(0);     alert(obj.id + " =  " + obj.value);   </script> </body> </html> See: getElementsByName/default.html
Image of page 25
Accessing form elements by name: example COMP-1536 & ACIT-1620 08b - 26 <!DOCTYPE HTML> <html lang="en"> <body style="font-family: Verdana, Arial, Helvetica, sans-serif;">   <div style="position: absolute; background-color: RGB(234,233,29); text-align: center; width:  100%; height: 60px;">     <br /><span style="color:red; font-family: verdana; font-size: large;">Seker Food  Industries</span>   </div>   <div style="position: absolute;margin-top: 100px; margin-left: 40px;">     <h3>Welcome to Seker Food Industries</h3><div>       <form method="post" action="bogus.php"  name="formBogus">         <div>           Text1: <input id="111" name="txtName" type="text" value="Hello" />           <br /><input type="submit" value="Submit" />         </div>       </form></div>   </div>   <script type = "text/javascript">      var obj = document.formBogus.txtName     alert("Previous id=" + obj.id + " / " + "Previous value=" + obj.value);     obj.value = "Goodbye";     obj.id = "222";     alert("New id=" + obj.id + " / " + "New value=" + obj.value);   </script></body> </html> See: forms/default.html
Image of page 26

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture