我正在尝试制作一个具有重定向到必应的搜索栏的网站。例如:当我输入"蓝色"时,它会将页面重定向到 http://www.bing.com/search?q=the+color+blue。我想使用与 lmgtfy 相同的方法。
将以下代码保存在文件中,作为您要完成的操作的简单示例。
<html>
<head>
</head>
<body>
<div>
<h1>Page redirects to a bing search</h1>
<form method="GET" action="http://www.bing.com/search">
<input type="text" name="q" id="q" value="enter your search here">
<input type="submit" value="Lookup">
</form>
</div>
</body>
</html>