<script type="text/javascript"> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

不同name时 
<script>
function jj(){
var a=document.getElementsByName("s1")[0].value;
document.getElementsByName("s2")[0].value=a;
}
</script>
<input name=s1 type="text" value="corange.cn">
<input name=s2 type="text" value=""οnfοcus="jj()">
请把鼠标移动到第二个文本框
===================
不同IP时候 
<script>
function jj(){
var a=document.getElementById("s1").value;
document.getElementById("s2").value=a;
}
</script>
<input id=s1 type="text" value="蓝色理想">
<input id=s2 type="text" value=""οnfοcus="jj()">
请把鼠标焦点放到第二个文本框
====================
实时同步输入 
<script language="javascript">
function copyob1toob2(){
document.all["ob_text_2"].value=document.all["ob_text_1"].value
}
</script>
<input type="text" );
o_1.onkeyup = function(){
//onkeyup,如果用onkeydown则少一个字母
       o_2.value = o_1.value
}
</script>
</body>
</html>

相关文章:

  • 2021-04-16
  • 2021-11-05
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
相关资源
相似解决方案