以下要注意引用src="/js/jquery-1.8.0.min.js
ArticleList.aspx?word=" + $("#word").val()提交页面的方法和参数
获取地址栏值可参考http://www.luofenming.com/show.aspx?id=ART2017050800003
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> 罗分明分享搜索 </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="/js/jquery-1.8.0.min.js" type="text/javascript"></script> <style type="text/css"> .bdinput { float: left; height: 24px; line-height: 24px; overflow: hidden; padding: 3px; margin-right: 10px; border: 1px solid #CECECF; width: 350px; vertical-align: middle; background: url("/images/shadow-in.png") no-repeat scroll 0 0 #FFFFFF; } input, label { vertical-align: middle; } .bdbutton { background-position: 0 -50px; border: 0 none; cursor: pointer; font-size: 16px; height: 32px; line-height: 32px; text-align: center; width: 86px; color: White; display: block; display: inline-block; background: url("/images/sbtn.png") no-repeat scroll 0 0 #FFFFFF; } .bdbutton:hover { background: url("/images/sbtn.png") no-repeat scroll 0 -37px #FFFFFF; } </style> </head> <body> <script language="javascript" type="text/javascript"> function Search() { top.location.href = encodeURI("ArticleList.aspx?word=" + $("#word").val());; } </script> <table bgcolor="#FFFFFF" style="font-size: 9pt;"> <tr height="60"> <td nowrap> <input id="word" size="30" maxlength="100" class="bdinput" /> <input type="button" onclick="Search()" value=" " class="bdbutton" /><br /> <div style="clear: both; padding-top: 5px;"> </div> </td> </tr> </table> </body> </html>