Hey guys,
I would like that when the HTML page loads to my website, if the user enters a word and presses a specific key (e.g. enter). The event should occur on the page and manipulate an object already existing on the page.
Here is an example:
1.) The webpage load
2.) The user enter a word, suppose "cow", and pressed the enter key.
3.) The Image of the cow disappears: cowImg.setAttribute("style", "display:none");
There is no input box where the user enters "cow". It must be done on the page and if the keyword is not followed by the press of the enter key, the event should not occur.