Jump to content

google search target page


YoungDuPage
 Share

Recommended Posts

I have a custom google search box as a sidebar "extra" on my homepage. Is it possible to have the search results shown on a different page?This is the search box code.

<style type="text/css">@import url(http://www.google.com/cse/api/branding.css);</style><div class="cse-branding-bottom" style="background-color:#FFFFFF;color:#000000">  <div class="cse-branding-form">	<form action="http://www.kazafox.com/search.php" id="cse-search-box">	  <div>		<input type="hidden" name="cx" value="partner-pub-9188516594009502:v3c369-ee72" />		<input type="hidden" name="cof" value="FORID:10" />		<input type="hidden" name="ie" value="ISO-8859-1" />		<input type="text" name="q" size="5" />		<input type="submit" name="sa" value="Search" />	  </div>	</form>  </div>  <div class="cse-branding-logo">	<img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" />  </div>  <div class="cse-branding-text">	Custom Search  </div></div>

This is the code for the search results.

<div id="cse-search-results"></div><script type="text/javascript">  var googleSearchIframeName = "cse-search-results";  var googleSearchFormName = "cse-search-box";  var googleSearchFrameWidth = 800;  var googleSearchDomain = "www.google.com";  var googleSearchPath = "/cse";</script><script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>

Link to comment
Share on other sites

You can open a new page/tab with a specified url. The url could include a big-old query string that gets data from your form. The query goes straight to google, or gets processed by your script and then goes to google. Either way, it returns to your new page.Yes?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...