Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1015421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:23:56+00:00 2026-05-16T10:23:56+00:00

I have converted a textbox search to Google Search using : location.href = http://images.google.com/search?q=

  • 0

I have converted a textbox search to Google Search using :

location.href = "http://images.google.com/search?q=" + val;

But, I want options of Web Search, Image Search, Local Search & News Search.

I do have :

<tr height="40">
<td width="80%" align="center" ><input id="searchText" type="text" size="100"/></td>
<td class="searchbox" width="20%" align="center"><a href="#" onclick="startSearch()">Search</a></td>
<td width="0%"></td>
</tr>

<td align="center">
<input type="radio" name="searchType" value="true"/> Web
<input type="radio" name="searchType" value="false"/> Image
<input type="radio" name="searchType" value="false"/> News
<input type="radio" name="searchType" value="false"/> Local
</td>

How do I filter this optiong using the same above link.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:23:56+00:00Added an answer on May 16, 2026 at 10:23 am

    First of all, you really should look into using the Google Search API, which will give you a lot more power and control.

    But if you need something quick and dirty, you would want to select the URL before concatenating the query. Here are the urls:

    "http://www.google.com/maps?q=" + val;
    "http://www.google.com/images?q=" + val;
    "http://www.google.com/news?q=" + val;
    

    etc.

    So perhaps the thing to do is maintain a global variable that contains the current search URL, and then change that variable in an onclick function for each radio button.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using explode i have converted the string into array , But the array look
i have converted a vb6 ocx to C# com control. this com control is
I have converted .jpg images into a bitmap thumbnail. What I am trying to
Using a decimal (I have tried variations of it) 0.5 is always converted to
I have a set of Word documents which I want to publish using a
I have made a function to convert a textbox value to date. I want
I want to use a dropdown menu on my JSP but... I have no
Suppose I have a textbox and I want that when the user types inside
I have converted an array to object data like this: <?php $myobject->data = (object)Array('zero','one','two');
I have converted an Entity framework project to use POCO objects by removing the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.