pandas r cool
@mamahao
pandas r cool
So I want to make a text box and then you click a button, and it processes it. It then searches google to find out something. Like if you search blueb
Coder100 you can definitely search, but it won't be easy to return the output, it's better to just redirect.
Here you go:
function genSearchURL(website, query)
{
return https://www.google.com/search?q=site%3A${website}+${query};
}
And you can use that to generate URLs:
console.log(genSearchURL("repl.it", "Coder100"));
btw, to use this, an example program looks like (don't actually lol, use an actual input):
location.href = genSearchURL("", prompt("Welcome, please type in your search query"))
Replac2 years ago