So we have a simple code that searches a set link we have. On opening, the page use enters the search query and then clicks search/submit. We want it to be set to that when they hit ENTER it automatically searches rather than having to use the enter button. Needless to say it will NOT open google I've just used that to display here
it's not working despite many efforts can anyone help me here at all?
<html>
<!-- search function for loop - widget code
created: 23/9/20
last update: 24/9/20
v 2.0.9 - corrected link to open in a new tab
-->
<head>
<title>Search Loop</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script</script>
<script type="text/javascript">
$(document).ready(function() {
$('#button').click(function(e) {
var inputvalue = $("#input").val();
window.open ("http://www.google.co.uk");
});
});
</script>
</head>
<body>
<p> Search Loop now ...</p>
<input type="text" value="" id="input">
<input type="button" id="button" value="Search" onlick="document.button.submit();">
</body>
</html>