扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:builder.com.cn 2007年4月18日
关键字:
<html><head>
<title>DOM Example</title>
</head><body>
<form id="frmDOMTest">
Name: <input name="fullName" id="fullNameField" type="text"><br>
Number: <input name="contactNumber" id="contactNumberField" type="text"><br>
<input id="submitButton" type="button" value="Submit"
onclick="document.getElementsByTagName('p')(0).innerHTML = document.getElementById('fullNameField').value;">
</form>
<p>Hey there.</p>
</body></html>
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。