搜索验证js
来源:互联网 发布:iphone连mac充电好吗 编辑:程序博客网 时间:2024/06/17 06:45
<div class="sousuo">
<form name="searchform" method="post" action="" onSubmit="return search_check()" accept-charset="utf-8">
<input type="hidden" name="channelid" value="291073" />
<div id="searchBox">
<input type="text" name="searchword" id="searchword" style="height:20px;" size="50" />
<input type="submit" value="检索" style="cursor:pointer; border:none; background-color:transparent; width:67px;height:24px; font-size:14px;font-weight:bold;color:#008cc3;" />
</div>
</form>
<script type="text/javascript">
function search_check() {
document.charset="utf-8";
var sword =document.getElementById("searchword").value.replace(/^\s+|\s+$/g,"");
if (sword=='' || sword=='请输入关键词') {
alert('请输入关键词!');
return false;
} else {
document.searchform.searchword.value = decodeURI(encodeURI(sword,"utf-8"));
document.searchform.submit();
}
}</script>
</div>
<form name="searchform" method="post" action="" onSubmit="return search_check()" accept-charset="utf-8">
<input type="hidden" name="channelid" value="291073" />
<div id="searchBox">
<input type="text" name="searchword" id="searchword" style="height:20px;" size="50" />
<input type="submit" value="检索" style="cursor:pointer; border:none; background-color:transparent; width:67px;height:24px; font-size:14px;font-weight:bold;color:#008cc3;" />
</div>
</form>
<script type="text/javascript">
function search_check() {
document.charset="utf-8";
var sword =document.getElementById("searchword").value.replace(/^\s+|\s+$/g,"");
if (sword=='' || sword=='请输入关键词') {
alert('请输入关键词!');
return false;
} else {
document.searchform.searchword.value = decodeURI(encodeURI(sword,"utf-8"));
document.searchform.submit();
}
}</script>
</div>
阅读全文
0 0
- 搜索验证js
- js 搜索
- JS验证
- js 验证
- js 验证
- JS验证
- js 验证
- js 验证
- js验证
- js 验证
- JS验证
- js 验证
- JS验证
- JS 验证
- js验证
- js验证
- JS 验证
- js验证
- web--前端之js代码8
- LeetCode 290. Word Pattern
- 关于视频播放VideoView的一些总结
- Material Design UI控件
- layer弹出层msg的文字不显示问题
- 搜索验证js
- c++直接继承和简介继承
- Java 基础(10)—— static
- 友盟分享步骤&
- ActiveMQ+Spring项目实践
- Java读取文件内容和写入内容到文件
- Blueprint__蓝本
- JS 对象合并与克隆方法的分类与比较
- vuejs在服务器部署