选择下拉框里面内容自动跳转特定页面
function searchMail(){
if(document.getElementById("search").value ==""){
alert("请输入要搜索的关键字");
document.getElementById("search").focus();
}else{
location="index.cfm?event=ehMail.dspComposeMessage&search="+document.getElementById("search").value+"&searchType="+document.getElementById("searchType").value;
}
} 
搜索 <input type="text" size="30" name="search" id="search" value="<cfif isdefined("rc.search")><cfoutput>#rc.search#</cfoutput></cfif>" /> 按
<select name="searchType" id="searchType">
<option value="title"<cfif isdefined("searchType") and searchType eq "title"> selected="selected"</cfif>>邮件主题</option>
<option value="mail"<cfif isdefined("searchType") and searchType eq "mail"> selected="selected"</cfif>>收件人信箱</option>
<option value="desc"<cfif isdefined("searchType") and searchType eq "desc"> selected="selected"</cfif>>邮件内容</option>
</select>
<input type="button" style="font-size:80%;" name="searchButton" id="searchButton" value="确 认" />
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
- 上一篇: HTML DOM 利用下拉框实现网页跳转
- 下一篇: 下拉列表select友情链接自动跳转
