正在使用自定義谷歌的搜索結果在我的網頁如何在新頁面顯示自定義谷歌的搜索結果
代碼:
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'en'});
google.setOnLoadCallback(function(){
var customSearchControl = new google.search.CustomSearchControl('016457557644291857915:ivjbplcmt5k');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
customSearchControl.draw('cse');
}, true);
</script>
上面的代碼工作正常,但它顯示出搜索導致該頁面本身。我想在一個單獨的頁面中顯示一個搜索結果頁面。
需要編寫代碼幫助