Wiki Viewer Help


I made this application few days ago. One of my friends from fcc reviewed and said that search key won’t work on pressing enter from keyboard. Now the problem is SEARCH button won’t work when clicked.

Please suggest the solution that both the events run properly.

You want two events to be handled, ‘click’ and ‘keypress’. Both events will be handled in the same way. Write one function that will be called when either the enter key is pressed or when the search button is clicked.