I'm trying to make different inputs generate a Google search, but Google only creates an input but I can not edit it.
Code Javascript :
(function() {
var cx = '010966112395912926010:u_3n5cqxw50';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
Code HTML :
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="google.js"></script>
<title></title>
</head>
<body>
The inputs are going to be created by me.
For example:
- Input 1:
intext:"guerra mundial"
- Input 2:
filetype:ppt
- Input 3:
intitle:"historia"
And then generate a search in the following way in Google, concatenating everything:
intext:"guerra mundial" filetype:ppt intitle:"historia"