大邱庄钢管网铁哥们:如何使用javascript实现在页面上的文本框中自动输入文字??
来源:百度文库 编辑:中科新闻网 时间:2024/05/15 11:17:03
<input id=textbox1>
<input type=button id=button1>
<script>
window.document.all.button1.onclick = function()
{
window.document.all.textbox1.value = 'hello world'
}
</script>
复制这段代码粘贴到 .html 里就可以运行了