1. var input =document.getElementById("input");
    2. input.onkeyup=function(event){
    3. if(event.keyCode==13){
    4. console.log(this.value);
    5. location.href=`search.html?s=${this.value}`
    6. }
    7. }