左侧内容COPY右边框框里面 代码如下<form> <input type="text" name=s1 id="s1"><input type=button onclick=copy() value=copy> <input type="text" name=s2></form> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function copy(){ document.getElementById('s2').value = document.getElementById('s1').value}<form> <input type="text" name="s1" id="s1"><input type="button" onclick="copy()" value="copy"> <input type="text" name="s2" id="s2"></form> 简单的javascript贪吃蛇 本地的静态网页,在地址栏后面添加参数以后,就报错。 AutoComplete,水平有限做不下去了,求高人 JS获取同一时间不同地区的时间 jsp的button onclick事件 如何传带html标签的参数给js 简单问题,马上解决,马上给分,在线等 javascript 怎样取链接字符窜后面后面参数的值 JS怎么获取页面所有文本框? 如何让下拉列表中选一项之后,让多选按纽全部消失? 请问在NETSCAPE如何得到COORDS的值,请帮帮忙 怎么把input(A)里面的内容复制到input(B)里面 请教web调用EXE程序问题
document.getElementById('s2').value = document.getElementById('s1').value
}<form>
<input type="text" name="s1" id="s1">
<input type="button" onclick="copy()" value="copy"> <input type="text" name="s2" id="s2"></form>