点击按钮将字符串放到一个文本框中怎样实现
解决方案 »
- Extjs htmleditor,Panel
- select 美化,并且能把先定的值通过FORM传到变量里
- JS调用SELECT进行运算
- js获取文件大小的问题?
- javascript这些函数怎么用?
- innerHtml Id自动定位问题
- 当一个窗口被关闭动作时,将触发onunload事件, 当窗口被导航到其他页面时也会触发onunload事件,如何用程序区分这两种不同的动作了(此
- 求:实现关闭一窗口时刷新另一窗口
- 如何得到访问用户的IP地址,并显示在页面上?
- 这些东西能不能动态生成???????????????????????????????????????
- 读一个变量的值
- 求一段显示菜单高亮的代码
function mytest()
{
document.all.test.value="你想要的字符串";
}
</script><input type="text" name="test" value="">
<input type="button" name="but" value="点击" onclick="mytest()">
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script>
function myFun(msg)
{
var txt = document.getElementById("txt");
txt.value = msg;
}
</script>
</head><body>
<input type="text" id="txt">
<input type="button" onClick="myFun('一个小例子');" value="测试">
</body>
</html>
呵呵 来晚了 不过还是贴出来。