crop_rotate
Run
<!DOCTYPE html> <html lang="en"> <head> <title>Page Title</title> </head> <body> <form> First Name: <input type="text" name="fname" value="Mohamed"> </form> <form> Last Name: <input type="text" name="lname" value="Ali"> </form> <button type="button" id="button">Try It</button> <p id="result"></p> <script> let button = document.getElementById('button'); let result = document.getElementById('result'); let forms = document.forms[1].lname.value; button.addEventListener("click",()=>{ result.innerHTML = forms; }); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbCBsYW5nPSJlbiI+DQo8aGVhZD4NCiAgPHRpdGxlPlBhZ2UgVGl0bGU8L3RpdGxlPg0KPGJhc2UgaHJlZj0iaHR0cHM6Ly93d3cuY2xvc2V0YWcuY29tLyIgdGFyZ2V0PSJfYmxhbmsiPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+IDo6LXdlYmtpdC1zY3JvbGxiYXJ7d2lkdGg6N3B4O2hlaWdodDo3cHg7fTo6LXdlYmtpdC1zY3JvbGxiYXItdHJhY2t7YmFja2dyb3VuZDojZmZmO306Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1ie2JvcmRlci1yYWRpdXM6NXB4O2JhY2tncm91bmQ6IzJmNDVmZjt9PC9zdHlsZT48L2hlYWQ+DQo8Ym9keT4NCiAgIDxmb3JtPg0KICAgRmlyc3QgTmFtZTogPGlucHV0IHR5cGU9InRleHQiIG5hbWU9ImZuYW1lIiB2YWx1ZT0iTW9oYW1lZCI+DQogICA8L2Zvcm0+DQogICA8Zm9ybT4NCiAgIExhc3QgTmFtZTogPGlucHV0IHR5cGU9InRleHQiIG5hbWU9ImxuYW1lIiB2YWx1ZT0iQWxpIj4NCiAgIDwvZm9ybT4NCiAgIDxidXR0b24gdHlwZT0iYnV0dG9uIiBpZD0iYnV0dG9uIj5UcnkgSXQ8L2J1dHRvbj4NCiAgIDxwIGlkPSJyZXN1bHQiPjwvcD4NCiAgICA8c2NyaXB0Pg0KICAgIGxldCBidXR0b24gPSBkb2N1bWVudC5nZXRFbGVtZW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