Source Code:
(back to article)
<!DOCTYPE html> <html> <head> <title>Title of the Document</title> </head> <body> <input type="text" id="inputElem" value="value"> <script> alert(inputElem.type); // "text" alert(inputElem.id); // "inputElem" alert(inputElem.value); // value </script> </body> </html>
Result:
Report an issue