社区
JavaScript
帖子详情
关于iframe的捕捉键盘事件
showivan
2004-10-26 11:29:28
我在做一个关于聊天室的例子,我在用户的输入框用的是iframe
例如:
<form>
<IFRAME class="Composition" width="100%" ID="Composition" height="67"
align="top"></IFRAME>
</form>
我想让用户输入完后除了点发送按钮外可以发表,还可以用ctrl+enter键就可以发送,我不知道如何来捕捉这个事件.请各们多帮忙了!~~
...全文
601
2
打赏
收藏
关于iframe的捕捉键盘事件
我在做一个关于聊天室的例子,我在用户的输入框用的是iframe 例如: 我想让用户输入完后除了点发送按钮外可以发表,还可以用ctrl+enter键就可以发送,我不知道如何来捕捉这个事件.请各们多帮忙了!~~
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
PPLUNCLE
2004-10-26
打赏
举报
回复
http://community.csdn.net/Expert/topic/3181/3181404.xml?temp=.6309015
littleboys
2004-10-26
打赏
举报
回复
<BODY onkeydown="if(event.ctrlKey&&event.keyCode=='13') form1.submit.click();">
<FORM METHOD=POST ACTION="" name="form1">
<input type="text">
<input type="submit" value="发送" name="submit">
LeetCode: 319. Bulb Switcher
[LeetCode: 319. Bulb Switcher](LeetCode: 319. Bulb Switcher) 题目描述 There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, y...
leetcode - 319. Bulb Switcher
leetcode - 319
【java】319. Bulb Switcher
问题原文https://leetcode-cn.com/problems/bulb-switcher/description/ 不动脑子的做法就是for双层循环,显而易见会超时。于是寻求新的想法。 举个例子,第八个位置的灯泡,在第一、二、四、八轮会被转换开关,最后是暗的。 第九个位置的灯泡,在第一、三、九轮会被转换开关,最后是亮的。 所以总结来看,完全平方数位置的灯泡在操作结束之后会是亮的...
319. Bulb Switcher (Math, Pattern)
There arenbulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it's off or turning off ...
Math-319-Bulb Switcher
Description: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it’s off o...
JavaScript
87,985
社区成员
224,681
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章