crop_rotate
Run
<!DOCTYPE html> <html> <body> <form id="myCarForm"> Favorite Car: <input type="text" name="fname" value="Volvo"> </form> <form id="myColorForm"> Favorite Color: <input type="text" name="favcolor" value="Blue"> </form> <p>Click the button to display the id of the first form element (index 0) in the document.</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { var x = document.forms.item(0).id; document.getElementById("demo").innerHTML = x; } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8Zm9ybSBpZD0ibXlDYXJGb3JtIj4NCiAgRmF2b3JpdGUgQ2FyOiA8aW5wdXQgdHlwZT0idGV4dCIgbmFtZT0iZm5hbWUiIHZhbHVlPSJWb2x2byI+DQo8L2Zvcm0+DQoNCjxmb3JtIGlkPSJteUNvbG9yRm9ybSI+DQogIEZhdm9yaXRlIENvbG9yOiA8aW5wdXQgdHlwZT0idGV4dCIgbmFtZT0iZmF2Y29sb3IiIHZhbHVlPSJCbHVlIj4NCjwvZm9ybT4NCg0KPHA+Q2xpY2sgdGhlIGJ1dHRvbiB0byBkaXNwbGF5IHRoZSBpZCBvZiB0aGUgZmlyc3QgZm9ybSBlbGVtZW50IChpbmRleCAwKSBpbiB0aGUgZG9jdW1lbnQuPC9wPg0KDQo8YnV0dG9uIG9uY2xpY2s9Im15RnVuY3Rpb24oKSI+VHJ5IGl0PC9idXR0b24+DQoNCjxwIGlkPSJkZW1vIj48L3A+DQoNCjxzY3JpcHQ+DQpmdW5jdGlvbiBteUZ1bmN0aW9uKCkgew0KICB2YXIgeCA9IGRvY3VtZW50LmZvcm1zLml0ZW0oMCkuaWQ7DQogIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJkZW1vIikuaW5uZXJIVE1MID0geDsNCn0NCjwvc2NyaXB0Pg0KDQo8L2JvZHk+DQo8L2h0bWw+