I'm creating an onload page that contain search input, and the value is generated from url
http://localhost/example?i%search%this
in the onload page i create this =
<body onload="myFunction()">
// this is where i put the input search that needs Enter to active search
<input type="text" class="form-control searchable-input floatL value-not-empty" placeholder="Search Badan Usaha" name="s545858fe" id="s545858fe">
</body>
<script>
function myFunction() {
var newURL = window.location.search.substr(1);
var uri_dec = decodeURIComponent(newURL);
document.getElementById("s545858fe").value = uri_dec;
}
</script>
my actual results is that i get "i search this" text in my input search, but its not execute the search because the search need enter key to execute