<img onclick="这里直接写文本框双击时运行的函数">
解决方案 »
- 求高手,整理一下JS,麻烦高人进来看看看看看~~
- object is not defined
- 如何用JavaScript控制table动态插入行
- ▲※如何让图片向右移动 和向左一样???※▲
- 怎样在客户端验证输入的验证码是否正确?
- select()方法问题,请高手指点一下。
- Firefox中的__defineGetter__和__defineSetter__跟IE中的哪个方法对应?
- 请问:把文字的字间距调宽一点的样式怎么定义啊,谢谢!
- 在javascript中怎样擦除cookies?
- 怎么判断是一个对象
- 用VC编的ocx如何在ASP.net页面在JavaScript脚本里调用属性方法事件???
- 返回上次调用的那个页面语句是什么啊~急~急
<input id="text1" type="text" ondblclick="alert('Double clicked.')">
<HTML>
<HEAD>
<SCRIPT>
function fnFireEvents()
{
oDiv.innerText = "The cursor has moved over me!";
oButton.fireEvent("onclick");
}
</SCRIPT>
</HEAD>
<BODY>
<h1>Using the fireEvent method</h1>
By moving the cursor over the DIV below, the button is clicked.
<P>
<DIV ID="oDiv" onmouseover="fnFireEvents();">
Mouse over this!
</DIV>
<p>
<BUTTON ID="oButton" ONCLICK="this.innerText='I have been clicked!'" >
Button</BUTTON>
</BODY>
</HTML>