hi.
i use ths code: <script src="
https://www.google.com/jsapi"
type="text/javascript"></script>
<script language="Javascript" type="text/javascript">
//<!
google.load('search', '1');
function OnLoad() {
// Create a search control
var searchControl = new google.search.SearchControl();
// Add in a full set of searchers
var localSearch = new google.search.LocalSearch();
searchControl.addSearcher(localSearch);
searchControl.addSearcher(new google.search.WebSearch());
// Set the Local Search center point
localSearch.setCenterPoint(New York,NY);
// tell the searcher to draw itself and tell it where to attach
searchControl.draw(document.getElementById("searchcontrol"));
// execute an inital search
searchControl.execute("keyboard");
}
google.setOnLoadCallback(OnLoad);
//]]>
</script>
</head>
<body>
<div id="searchcontrol">Loading</div>
</body>
</html>
but my problem is:when compare result of this code and
google.com, result is different.
result of above code:
www.amazon.com,www.bgfl.org,en.wikipedia.org,www.apple.com
result of google.com:www.bgfl.org/virtualkeyboard,en.wikipedia.org/wiki/Computer_keyboard,en.wikipedia.org/wiki/Keyboard_instrument,https://www.apple.com/keyboard/
can anyone help me?
thanks a lot.