Wondering how to simulate an enter key press into a javascript function. I cannot use Jquery.. Must be javascript. Here is some code:
<script type="text/javascript">
function SetInput(string) {
console.log(string);
searchbox = document.getElementById("searchbox");
searchbox.value = string;
}
console.log("fired!")
</script>
<input class="search" placeholder="Search" id="searchbox" />