![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
input
nu11大人
这个作者很懒,什么都没留下…
展开
-
checkbox全选和反选
引用下面jsfunction chkall(input1,input2){ var objForm = document.forms[input1]; var objLen = objForm.length; for (var iCount = 0; iCount < objLen; iCount++) { if (input2.check原创 2015-07-15 15:08:20 · 270 阅读 · 0 评论 -
操作确认alert 确定继续 取消停止
onClick="javascript:if(!confirm('你确定删除吗?')) { return false;};location='url';"原创 2015-07-15 15:42:31 · 2705 阅读 · 0 评论 -
onclick 跳转
onclick="javascript:window.location.href='URL'"onclick="location='URL'"onclick="window.location.href='URL?id=11'"原创 2015-07-15 15:38:16 · 784 阅读 · 0 评论 -
点击输入框文字消失,统计输入框文字并限制
最多输入50个字 0/50<textarea class="textarea" maxlength="50" onFocus="chg_1(this)" onBlur="chg_2(this)" onkeydown=countChar("Content","Content_Num"); onkeyup=countChar ("Content","Content_Num"); id="Con原创 2015-07-16 11:35:38 · 362 阅读 · 0 评论