Making Google Custom Search display results on a new tab - html

I am developing a website which has custom Google search bar embedded into it. My client wants a functionality that when a user searches something into that search box, a new page should open where he should be shown the result of his search. The current Google search bar displays the result just below it. Is there any way I can change to display the results in a new tab? Please help out. Thanks

I would recommend using the new Google Custom Search Widget. It provides a simple parameter to open the searched item in a new window. The method you are using is deprecated.
<gcse:searchbox-only resultsUrl="http://www.example.com" newWindow="true" queryParameterName="search">
For more information visit this.

Related

Link to map switches to app but does nothing

Given the following TS code to open a link to Google Maps:
const linkToMap = `https://google.com/maps/search/?api=1&query=${searchTerm}`;
window.open(linkToMap, '_blank');
When opening from a desktop or mobile browser, it works as expected. A new tab opens to Google Maps with a search for the query term. However, on Android devices, Google Maps will open and then do nothing. It will show whatever was open in the app when it was last used. It is behaving like it recognizes the maps link, but cannot handle the parameters. How can I fix this? Is there a specific way I need to structure the link? Is there a way to get logs for the app to see if its throwing an error?
I've tried using an older link scheme (https://www.google.com/maps?q=760+West+Genesee+Street+Syracuse+NY+13204) but got the same result.

Is there other ways to create a button for Google Apps menu in chrome extension?

enter image description here
While I'm building a chrome extension, I want to implement a button in a new tab of chrome.
(as shown in picture, just like the original new tab has.)
I thought there must be a way, something like Google API or webpack.
But even after I spent 3 hours of searching, I couldn't find it.
And I've also tried to inspect other extensions in the store,
but the codes were too complicated to beginner like me.
So I decided to build it manually with tags and icons.
Am I on the right track?
or Is there any API or webpack?

How to implement Google map in Xamarin forms

I'm trying to make xamarin.forms app with google map on page.
Earlier I used Device.OpenUri, but as official documetation says: "This often navigates out of the application."
My goal is to stay in aplication and make exact the same page like this:
I can't find any good documentation or step by step tutoriel neighter...
Did you check Xamarin Forms Map? If you don't like how the default pins look like, you can define a template for them (check here).
In case you already have a link of google maps that you want to show, and you don't want to create it by yourself (solution from above), try with WebView and set URL to the link you have.

Google Maps : create (short) URL to current view & location?

Google Maps used to have a feature to create a link (short URL) to the current view and location. However that doesn't seem to be there anymore...?? Is that gone or how do I do that?
I mean not just a link to a specific search query, i.e. like maps.google.com/maps?q=<address> or maps.google.com/maps?q=<lat,lon>, but when moving around, having a certain view and zoom level and everything, you could do 'Create link'. With a checkbox 'create short URL` which resulted in URLs like http://goo.gl/maps/AbCdEf.
Anyone knows where I can find that feature now?
Left to the search box you'll find the following icon:
Here you find the option for sharing the link to the current view, also for short links.
It has changed in the latest version of Maps: If you click on the "Share" Icon in the route details section - it allows the same thing - select "Short URL" and off you go...

How to feed search results straight into Google Search?

If the title isn't clear, then hopefully this description will clear it up.
What I wanted was for a user to highlight a word on any given webpage and then that word will be searched up on Google Search (as in google.com). I have explored custom search engine but I dont need to create a whole other search engine. I just need to have whatever was highlighted to be searched up in a new tab. Is there a specific from Google for this?
Thanks for your time and help.
I will be using JavaScript if that matters.
Assuming you are using Google Chrome (as your tag indicates, to me anyways), highlighting a selection then right-click will give you the option to search with your default search engine and open the result in a new tab.
It is unclear exactly what functionality you want and what you are writing. Is it a Chrome extension?