我想用搜索关键字打开google.com [英] I want to open google.com with search keyword
本文介绍了我想用搜索关键字打开google.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想用asp.net C#中的搜索关键字打开google.com.
< a href ="http://www.google.co.in" target ="_ blank"> google.com</a>
我想用我的搜索关键字显示Google页面.我可以在其中放置搜索关键字的地方.
请告诉我.
Hello All,
I want to open google.com with search keyword in asp.net C#
<a href="http://www.google.co.in" target="_blank">google.com</a>
i want display google page with my search keyword. where i can put my search keyword.
please tell me.
推荐答案
在url中:
In the url:
<a href="http://www.google.com/search?q=keyword" target="_blank">google.com</a>
如果要动态搜索,请尝试此操作(根据需要更改代码)
If you want dynamic search then try this(Change code based on your need)
<html>
<head>
<title>Google search</title>
<script language="javascript" type="text/javascript">
function openwin()
{
window.open("http://www.google.com/search?q=" + document.getElementById("txtText").value ,"GoogleSearch","width=500,height=500");
}
</script>
</head>
<body>
<input type="text" id="txtText">
<a href="javascript: openwin();">Google Search</a>
</body>
</html>
这篇关于我想用搜索关键字打开google.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文