I cannot seem to be able to hit enter and let it do the same as click button *FIXED

im doing the wikipedia viewer thingy. i need help when press key"enter" do the same as clicking on button and if u have any suggestion on how to make the code look nicer please do so and if u do it would be nice if you could explain how and why it work that way.

    if(event.keyCode == 13){
1 Like

Thanks alot!!! <3